Endpoint lastDelegateEndpoint = parentCasStateEntry.getLastDelegate().getEndpoint();
if (lastDelegateEndpoint.processParentLast()) {
// The parent was suspended in the process call. Resume processing the CAS
process(parentCASCacheEntry.getCas(), parentCasStateEntry.getCasReferenceId());
} else if ( parentCasStateEntry.waitingForChildrenToFinish()){
// The parent was suspended in the final step. Resume processing the CAS
finalStep(parentCasStateEntry.getFinalStep(), parentCasStateEntry.getCasReferenceId());
}
}