if(customProperties == null || customProperties.getLength() == 0)
return null;
CustomPropertyConfig[] cpConfig = new CustomPropertyConfig[customProperties.getLength()];
for(int i = 0; i < cpConfig.length; i++) {
cpConfig[i] = new CustomPropertyConfig(
DomUtils.getChildElementText((Element)customProperties.item(i), "name"),
DomUtils.getChildElementText((Element)customProperties.item(i), "value")
);
}
return cpConfig;