public void shouldLoadDataMaps(String domainName, Map<String, DataMap> locations) {
if (locations.size() == 0) {
return;
}
DataDomain domain = null;
try {
domain = findDomain(domainName);
}
catch (FindException ex) {
logger.info("Error: Domain is not loaded: " + domainName);
throw new ConfigurationException("Domain is not loaded: " + domainName);
}
// load DataMaps tree
for (String name : locations.keySet()) {
DataMap map = domain.getMap(name);
if (map != null) {
continue;
}
loadDataMap(domain, name, locations);