When configuring the connection properties, replace the property ProcessService.DIRECTORY_PROPERTIES_FILE for the property ProcessService.PROJECT_PATH and assign it the file-path to your project.
Properties config = new Properties();
config.setProperty(ProcessService.DIRECTORY_ID, "default");
config.setProperty(ProcessService.PROJECT_PATH, "../BPMWorkspace/PapiTest" );