private void createMessage(String paramName, Object value, XmlElement inputMsgElem)
throws ComponentRegistryException {
XmlElement paramsElem = builder.newFragment(this.requestNS, paramName);
if (value instanceof String) {
paramsElem.addChild(value);
} else if (value instanceof Collection) {
Collection list = (Collection) value;
Iterator arrayValues = list.iterator();
while (arrayValues.hasNext()) {
XmlElement item = builder.newFragment("value");