code: private static Map<String, String> getNamespaceBindings(Element element) {
      Map<String, String> namespaceMap = new HashMap<String, String>();
      getNamespaceBindings(element, namespaceMap);
      return namespaceMap;
    }
docs: Returns a map holding all registered namespace bindings, where the key is the qualified name of the namespace and
  the value part is the URI.
  
  @param element
  the element to start from
  @return a namespace map