code: private void loadTemplates( Element parent )
      {
          // Load templates
          List templates = DomUtils.getChildElementsByName( parent, URL_TEMPLATE );
          for ( int i = 0; i < templates.size(); i++ )
          {
              Element template = ( Element ) templates.get( i );
              String name = getElementText( template, NAME );
              if ( name == null )
              {
                  _log.error( "Malformed URL template descriptor in " + _configFilePath
                              + ". The url-template name is missing." );
                  continue;
              }
  
              String value = getElementText( template, VALUE );
              if ( value == null )
              {
                  _log.error( "Malformed URL template descriptor in " + _configFilePath
                              + ". The url-template value is missing for template " + name );
                  continue;
              }
  
              if ( _log.isDebugEnabled() )
              {
                  _log.debug( "[URLTemplate] " + name + " = " + value );
              }
  
              URLTemplate urlTemplate = new URLTemplate( value, name );
              if ( urlTemplate.verify( _knownTokens, _requiredTokens ) )
              {
                  _urlTemplates.addTemplate( name, urlTemplate );
              }
          }
      }
docs: Loads the templates from a URL template config document.
  
  @param parent