code: protected String getPrefixedName( Name baseName ) {
          String prefixedName = prefixedNames.get(baseName);
  
          if (prefixedName == null) {
              prefixedName = baseName.getString(session.namespaces());
  
              prefixedNames.put(baseName, prefixedName);
          }
  
          return prefixedName;
      }
docs: Returns the &quot;prefixed&quot; or rewritten version of <code>baseName</code> based on the URI mappings in the current
  session. For example:</p> If the namespace &quot;http://www.example.com/JCR/example/1.0&quot; is mapped to the prefix
  &quot;foo&quot; in the current session (or as a persistent mapping that has not been re-mapped in the current session),
  this method will return the string &quot;foo:bar&quot; when passed a {@link Name} with uri
  &quot;http://www.example.com/JCR/example/1.0&quot; and local name &quot;bar&quot;.</p> This method does manage and utilize
  a {@link Name} to {@link String} cache at the instance scope.
  
  @param baseName the name to be re-mapped into its prefixed version
  @return the prefixed version of <code>baseName</code> based on the current session URI mappings (which include all
  persistent URI mappings by default).
  @see #prefixedNames
  @see javax.jcr.Session#setNamespacePrefix(String, String)
  @see javax.jcr.Session#getNamespacePrefix(String)