private NamespaceContext buildNamespaceContext(Node node) {
        SimpleNamespaceContext simpleNamespaceContext = new SimpleNamespaceContext();
        Map<String, String> namespaces = XMLUtils.lookupNamespaces(node.getOwnerDocument());

        // add default namespace mappings
        namespaces.putAll(namespaceContextBuilder.getNamespaceMappings());

        simpleNamespaceContext.setBindings(namespaces);

        return simpleNamespaceContext;
    }
private NamespaceContext buildNamespaceContext ( Node node ) { SimpleNamespaceContext simpleNamespaceContext = new SimpleNamespaceContext ( ) ; Map < String , String > namespaces = XMLUtils . lookupNamespaces ( node . getOwnerDocument ( ) ) ; namespaces . putAll ( namespaceContextBuilder . getNamespaceMappings ( ) ) ; simpleNamespaceContext . setBindings ( namespaces ) ; return simpleNamespaceContext ; }
Builds namespace context with dynamic lookup on received node document and global namespace mappings from
namespace context builder.
@param node the element node from message
@return