protected Deployment performEngineDeployment(ProcessArchive processArchive) {
   String deploymentId = activitiDeployer.processArchiveDeployed(processArchive);
   if (deploymentId == null) {
     return null;
   } else {
     return activitiProcessEngine
         .getRepositoryService()
         .createDeploymentQuery()
         .deploymentId(deploymentId)
         .singleResult();
   }
 }
 protected void performEngineUndeployment(ProcessArchive processArchive) {
   activitiDeployer.processArchiveUndeployed(processArchive);
 }