code: public String getTemplateNameByRef( String refGroupName, String key )
      {
          assert _urlTemplates != null : "The template config file has not been loaded.";
  
          if ( _urlTemplates == null )
          {
              return null;
          }
  
          String ref = _urlTemplates.getTemplateNameByRef( refGroupName, key );
          if ( ref == null )
          {
              // If the template is a secure template, look for the secure default
              // before resolving to the default
              if ( key.equals( URLTemplatesFactory.SECURE_RENDER_TEMPLATE ) ||
                      key.equals( URLTemplatesFactory.SECURE_ACTION_TEMPLATE ) ||
                      key.equals( URLTemplatesFactory.SECURE_RESOURCE_TEMPLATE ) )
              {
                  ref = _urlTemplates.getTemplateNameByRef( refGroupName, URLTemplatesFactory.SECURE_DEFAULT_TEMPLATE );
              }
          }
  
          return ref;
      }
docs: Returns URL template name of the given type (by key) from the
  desired reference group.
  
  @param refGroupName name of a group of templates from the config file.
  @param key          type of the template
  @return template name