docs: protected boolean exists(MessageJobDeclaration msgJobdecl, String procDefKey, String activityId) {
      boolean exist = false;
      List<JobDeclaration<?, ?>> declarations = jobDeclarations.get(procDefKey);
      if (declarations != null) {
        for (int i = 0; i < declarations.size() && !exist; i++) {
          JobDeclaration<?, ?> decl = declarations.get(i);
          if (decl.getActivityId().equals(activityId) &&
              decl.getJobConfiguration().equalsIgnoreCase(msgJobdecl.getJobConfiguration())) {
            exist = true;
          }
        }
      }
      return exist;
    }