code: public Hashtable<String,List<Other>> attributesWithNamespace(String namespace) {
  
  
          Hashtable<String,List<Other>> result=namespaceIndex.get(namespace);
          if (result==null) {
              result=new Hashtable<String,List<Other>>();
              namespaceIndex.put(namespace,result);
          }
  
          for (Other attribute: attributes) {
              
              QualifiedName name=attribute.getElementName();
              if (namespace.equals(name.getNamespaceURI())) {
                  List<Other> ll=result.get(name.getLocalPart());
                  if (ll==null) {
                      List<Other> tmp=new LinkedList<Other>();
                      tmp.add(attribute);
                      result.put(name.getLocalPart(),tmp);
                  } else {
                      ll.add(attribute);                        
                  }
              }
          }
          return result;
      }
docs: /* Processing of attributes