if(list == null || list.getLength() == 0)
return null;
HandlerConfig[] handlerConfigs = new HandlerConfig[list.getLength()];
for(int i = 0; i < handlerConfigs.length; i++) {
handlerConfigs[i] = new HandlerConfig(
DomUtils.getChildElementText((Element)list.item(i), "handler-class"),
parseCustomProperties(((Element)list.item(i)).getElementsByTagName("custom-property"))
);
}
return handlerConfigs;