sortSmooksResourceConfigurations(resourceConfigTable);
// If there's a DTD for this device, get it and add it to the DTDStore.
List dtdSmooksResourceConfigurations = resourceConfigTable.get("dtd");
if(dtdSmooksResourceConfigurations != null && dtdSmooksResourceConfigurations.size() > 0) {
SmooksResourceConfiguration dtdSmooksResourceConfiguration = (SmooksResourceConfiguration)dtdSmooksResourceConfigurations.get(0);
byte[] dtdDataBytes = dtdSmooksResourceConfiguration.getBytes();
if(dtdDataBytes != null) {
DTDStore.addDTD(profileSet, new ByteArrayInputStream(dtdDataBytes));
// Initialise the DTD reference for this config table.
dtd = DTDStore.getDTDObject(profileSet);
} else {
logger.error("DTD resource [" + dtdSmooksResourceConfiguration.getResource() + "] not found in classpath.");
}
}
// Expand the SmooksResourceConfiguration table and resort
expandSmooksResourceConfigurationTable();