code: public String getPrefix(String uri) throws NamespaceException
     {
        String prefix = prefixes.get(uri);
        if (prefix != null)
        {
           return prefix;
        }
        throw new NamespaceException("Prefix for " + uri + " not found");
     }
docs: {@inheritDoc}