Iterator tableNamesIter = new TreeSet(colInfo.keySet()).iterator();
while (tableNamesIter.hasNext()) {
String tableName = (String) tableNamesIter.next();
Map colMap = (Map) colInfo.get(tableName);
ModelEntity newEntity = new ModelEntity(tableName, colMap, modelFieldTypeReader, isCaseSensitive);
root.appendChild(newEntity.toXmlElement(document, "org.ofbiz.ext." + packageName));
}
// print the messages to the console
for (int i = 0; i < messages.size(); i++) {
Debug.logInfo((String) messages.get(i), module);