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;
  }
 protected boolean isNotSatisfiedIfPartOnly(CmmnSentryPart sentryPart) {
   return IF_PART.equals(sentryPart.getType())
       && getSentries().get(sentryPart.getSentryId()).size() == 1
       && !sentryPart.isSatisfied();
 }