QName type = ((WSIFMessageElement) this.inputMessage).getPartType(name);
if (LEADTypes.isArrayType(type)) {
// split string into items using " " as separator
Pattern pattern = Pattern.compile("[,\\s]+");
String[] result = pattern.split((String) value);
XmlElement arrayEl = XmlConstants.BUILDER.newFragment(name);
for (int i = 0; i < result.length; i++) {
logger.debug("split=" + result[i]);
arrayEl.addElement("value").addChild(result[i]);
}
this.inputMessage.setObjectPart(name, arrayEl);
value = null; // no need to set string value below
}