return;
}
try {
// configure resource locator to take absolute path
MapLoader mapLoader = new MapLoader() {
protected ResourceLocator configLocator() {
ResourceLocator locator = new ResourceLocator();
locator.setSkipAbsolutePath(false);
locator.setSkipClasspath(true);
locator.setSkipCurrentDirectory(true);
locator.setSkipHomeDirectory(true);
return locator;
}
};
DataMap newMap = mapLoader.loadDataMap(dataMapFile.getAbsolutePath());
DataDomain domain = getProjectController().getCurrentDataDomain();
if (newMap.getName() != null) {
newMap.setName(NamedObjectFactory.createName(
DataMap.class,