public void verifyDecisionTablesDoNotShareKeys(Collection<DecisionTableEntity> decisionTables){
  Set<String> keySet=new LinkedHashSet<String>();
  for (  DecisionTableEntity decisionTable : decisionTables) {
    if (keySet.contains(decisionTable.getKey())) {
      throw new ActivitiDmnException("The deployment contains decision tables with the same key (decision id attribute), this is not allowed");
    }
    keySet.add(decisionTable.getKey());
  }
}

public void verifyDecisionTablesDoNotShareKeys ( Collection < DecisionTableEntity > decisionTables ) { Set < String > keySet = new LinkedHashSet < String > ( ) ; for ( DecisionTableEntity decisionTable : decisionTables ) { if ( keySet . contains ( decisionTable . getKey ( ) ) ) { throw new ActivitiDmnException ( "The deployment contains decision tables with the same key (decision id attribute), this is not allowed" ) ; } keySet . add ( decisionTable . getKey ( ) ) ; } }
verifies that no two decision tables share the same key , to prevent database unique index violation .
