docs: protected boolean isLeaf(ExecutionEntity execution) {
      if (CompensationBehavior.isCompensationThrowing(execution)) {
        return true;
      }
      else {
        return !execution.isEventScope() && execution.getNonEventScopeExecutions().isEmpty();
      }
    }