Source:
public HandlerResult handle(ProcessState state, ProcessInstance process) { final Instance instance = (Instance) state.getResource(); Map<String, Object> resultData = new ConcurrentHashMap<String, Object>(); HandlerResult result = new HandlerResult(resultData); progress.init(state, 16, 16, 16, 16, 20, 16); try { try { progress.checkPoint("Networking"); network(instance, state); progress.checkPoint("Waiting for dependencies"); waitForDependenciesStart(instance); progress.checkPoint("Waiting for deployment unit instances to allocate"); waitForDeploymentUnitAllocate(instance); progress.checkPoint("Scheduling"); allocate(instance); activatePorts(instance, state); instanceDao.clearCacheInstanceData(instance.getId()); progress.checkPoint("Storage"); storage(instance, state); } catch (ExecutionException e) { log.error("Failed to for instance [{}]", progress.getCurrentCheckpoint(), instance.getId()); return handleStartError(state, instance, e); } try { progress.checkPoint("Starting"); compute(instance, state); } catch (ExecutionException e) { log.error("Failed to for instance [{}]", progress.getCurrentCheckpoint(), instance.getId()); if (incrementComputeTry(state) >= getMaxComputeTries(instance)) { return handleStartError(state, instance, e); } throw e; } } catch (TimeoutException e) { handleReconnecting(state, instance); throw e; } try { progress.checkPoint("Post-network"); activatePorts(instance, state); } catch (ExecutionException e) { log.error("Failed to for instance [{}]", progress.getCurrentCheckpoint(), instance.getId()); return handleStartError(state, instance, e); } assignPrimaryIpAddress(instance, resultData); instanceDao.clearCacheInstanceData(instance.getId()); return result; }

Target:
public HandlerResult handle(ProcessState state, ProcessInstance process) { final Instance instance = (Instance) state.getResource(); Map<String, Object> resultData = new ConcurrentHashMap<String, Object>(); HandlerResult result = new HandlerResult(resultData); progress.init(state, 16, 16, 16, 16, 20, 16); try { try { progress.checkPoint("Networking"); network(instance, state); progress.checkPoint("Waiting for dependencies"); waitForDependenciesStart(instance); progress.checkPoint("Waiting for deployment unit instances to create"); waitForDeploymentUnitCreate(instance); progress.checkPoint("Scheduling"); allocate(instance); activatePorts(instance, state); instanceDao.clearCacheInstanceData(instance.getId()); progress.checkPoint("Storage"); storage(instance, state); } catch (ExecutionException e) { log.error("Failed to for instance [{}]", progress.getCurrentCheckpoint(), instance.getId()); return handleStartError(state, instance, e); } try { progress.checkPoint("Starting"); compute(instance, state); } catch (ExecutionException e) { log.error("Failed to for instance [{}]", progress.getCurrentCheckpoint(), instance.getId()); if (incrementComputeTry(state) >= getMaxComputeTries(instance)) { return handleStartError(state, instance, e); } throw e; } } catch (TimeoutException e) { handleReconnecting(state, instance); throw e; } try { progress.checkPoint("Post-network"); activatePorts(instance, state); } catch (ExecutionException e) { log.error("Failed to for instance [{}]", progress.getCurrentCheckpoint(), instance.getId()); return handleStartError(state, instance, e); } assignPrimaryIpAddress(instance, resultData); instanceDao.clearCacheInstanceData(instance.getId()); return result; }