if(list == null || list.getLength() == 0)
return null;
ModuleConfigLocatorConfig[] mclConfig = new ModuleConfigLocatorConfig[list.getLength()];
for(int i = 0; i < list.getLength(); i++) {
mclConfig[i] = new ModuleConfigLocatorConfig(
DomUtils.getChildElementText((Element)list.item(i), "locator-class"),
DomUtils.getChildElementText((Element)list.item(i), "description")
);
}
return mclConfig;