code: public static URIContext getInstance()
      {
          URIContext uriContext = MutableURI.getDefaultContext();
          UrlConfig urlConfig = ConfigUtil.getConfig().getUrlConfig();
  
          if ( urlConfig != null)
          {
              uriContext.setUseAmpEntity( urlConfig.isHtmlAmpEntity() );
          }
  
          return uriContext;
      }
docs: Get a URIContext. The context has data used to write a MutableURI
  as a string. For example, it will indicate that the URI should be
  written using the &quot;&amp;amp;&quot; entity, rather than the
  character, '&amp;'. This returns the default context, but also
  checks for any overriding setting in the NetUI config.
  
  @return the URIContext