code: public void addTemplate( String templateName, URLTemplate template )
      {
          if ( templateName == null || templateName.length() == 0 )
          {
              throw new IllegalArgumentException( "Template name cannot be null or empty." );
          }
  
          if ( template == null )
          {
              throw new IllegalArgumentException( "URLTemplate cannot be null." );
          }
  
          _templates.put( templateName, template );
      }
docs: Add a template from url-template-config by name.
  
  @param templateName the name of the template.
  @param template the template to add.