code: protected String getAttribute(Map<String, String> attributes, InternalQName name) throws RepositoryException
     {
        JCRName jname = locationFactory.createJCRName(name);
        return attributes.get(jname.getAsString());
     }
docs: Returns the value of the named XML attribute.
  
  @param attributes set of XML attributes
  @param name attribute name
  @return attribute value, or <code>null</code> if the named attribute is not
  found
  @throws RepositoryException