DataMap currentMap = getProjectController().getCurrentDataMap();
try {
String path = file.getCanonicalPath();
EOModelProcessor processor = new EOModelProcessor();
// load DataNode if we are not merging with an existing map
if (currentMap == null) {
loadDataNode(processor.loadModeIndex(path));
}
// load DataMap
DataMap map = processor.loadEOModel(path);
addDataMap(map, currentMap);
}
catch (Exception ex) {
logObj.info("EOModel Loading Exception", ex);