code: public String getURLTemplateRef( String refGroupName, String key )
      {
          String ref = null;
  
          if ( _servletContext != null )
          {
              URLTemplatesFactory urlTemplatesFactory = URLTemplatesFactory.getURLTemplatesFactory( _servletContext );
              if ( urlTemplatesFactory != null )
              {
                  ref = urlTemplatesFactory.getTemplateNameByRef( refGroupName, key );
              }
          }
  
          return ref;
      }
docs: Returns URL template name of the given type (by key).
  
  @param refGroupName name of a group of templates from the config file.
  @param key type of the template
  @return template name