private void addMappings(MetadataSources mds, String moduleConfig) throws ConfigurationException, DocumentException { Element module = readMappingElements(moduleConfig); if (module != null) { for (Iterator l = module.elementIterator("mapping"); l.hasNext(); ) { Element mapping = (Element) l.next(); parseMapping(mds, mapping, moduleConfig); } } }
private void addMappings(Configuration cfg, String moduleConfig) throws ConfigurationException, DocumentException { Element module = readMappingElements(moduleConfig); if (module != null) { for (Iterator l = module.elementIterator("mapping"); l.hasNext(); ) { Element mapping = (Element) l.next(); parseMapping(cfg, mapping, moduleConfig); } } }