OpenEsbDeployer deployer = new OpenEsbDeployer();
deployer.setTmpFolder(Paths.get("/opt/betsy"));
deployer.setProcessName(request.getProcessName());
deployer.setPackageFilePath(pathToPackageFile);
deployer.setCli(cli);
deployer.deploy();
} else {
throw new CommunicationException("invalid engine given");
}
log.info("Deployment successful -> sending response");