KModuleDeploymentUnit deploymentUnit = (KModuleDeploymentUnit) ctx.getData(DEPLOYMENT_UNIT);
JobType jobType = (JobType) ctx.getData(JOB_TYPE);
String deploymentId = deploymentUnit.getIdentifier();
JobResultManager jobResultMgr = getJobManager(ctx);
String jobId = (String) ctx.getData(JOB_ID);
JaxbDeploymentJobResult jobResult = jobResultMgr.getJob(jobId);
boolean success = false;
switch (jobType) {
case DEPLOY:
try {
jobResult.getDeploymentUnit().setStatus(JaxbDeploymentStatus.DEPLOYING);