} else if (value instanceof Collection) {
Collection list = (Collection) value;
Iterator arrayValues = list.iterator();
while (arrayValues.hasNext()) {
XmlElement item = builder.newFragment("value");
item.addChild(arrayValues.next());
paramsElem.addChild(item);
}
} else if (value instanceof ArrayList) {
Collection list = (Collection) value;
Iterator arrayValues = list.iterator();