This is modelled after javax.xml.namespace.NamespaceContext but reduced to our needs.
Unlike the method in javax.xml.namespace.NamespaceContext doesn't have to implement any special handling for predefined prefix values.