for (int i = 0; i < recordSourceCount; i++) {
Node recordSourceNode = recordSourceNodeList.item(i);
if (recordSourceNode.getNodeType() == Node.ELEMENT_NODE) {
RecordSource recordSource = createRecordSource(recordSourceNode);
if (orderList.contains(recordSource.getOrder())) {
throw new BadRecordSourceException("The order " + recordSource.getOrder()
+ " has been allocated to more than one record sources. Unique order expected.");
}
if (recordSourceList.contains(recordSource)) {
throw new BadRecordSourceException("Record source for "
+ recordSource.getTableName() + " configured more than once in the xml "
+ "configuration file. Only one instance is expected.");
}
recordSourceList.add(recordSource);
orderList.add(recordSource.getOrder());