if (dms != null && dms.size() > 0) {
Iterator<Element> iterator = dms.iterator();
// get a handle in the DataModelManager singleton instance
DataModelManager mgr = DataModelManager.getInstance();
String path = getPath();
// iterate through each data model specification adding them to the
// data model manager instance
while (iterator.hasNext()) {
e = iterator.next();
mgr.readModel(e, path);
}
}
// get the name of a data model for this DataItem
String modelName;
if ((modelName = getElementValue("modelName",di)) != null) { //$NON-NLS-1$
DataModelManager mgr = DataModelManager.getInstance();
model = mgr.getModel(modelName);
if (model == null) {
LOG.error(Messages.getString("DataItem.16")+modelName); //$NON-NLS-1$
}
}