protected boolean containsIfPartAndExecutionActive( String sentryId, Map<String, List<CmmnSentryPart>> sentries) { List<? extends CmmnSentryPart> sentryParts = sentries.get(sentryId); for (CmmnSentryPart part : sentryParts) { CmmnExecution caseExecution = part.getCaseExecution(); if (IF_PART.equals(part.getType()) && caseExecution != null && caseExecution.isActive()) { return true; } } return false; }