}
extractMessageValues.put(pathExpression, messageValue.getAttribute("variable"));
}
XpathPayloadVariableExtractor payloadVariableExtractor = new XpathPayloadVariableExtractor();
payloadVariableExtractor.setxPathExpressions(extractMessageValues);
Map<String, String> namespaces = new HashMap<String, String>();
Element messageElement = DomUtils.getChildElementByTagName(element, "message");
if (messageElement != null) {
List<?> namespaceElements = DomUtils.getChildElementsByTagName(messageElement, "namespace");
if (namespaceElements.size() > 0) {
for (Iterator<?> iter = namespaceElements.iterator(); iter.hasNext();) {
Element namespaceElement = (Element) iter.next();
namespaces.put(namespaceElement.getAttribute("prefix"), namespaceElement.getAttribute("value"));
}
payloadVariableExtractor.setNamespaces(namespaces);
}
}
variableExtractors.add(payloadVariableExtractor);
}