code: public static String getURLTemplateKey( URLType urlType, boolean needsToBeSecure )
      {
          String key = URLTemplatesFactory.ACTION_TEMPLATE;
          if ( urlType.equals( URLType.ACTION ) )
          {
              if ( needsToBeSecure )
              {
                  key = URLTemplatesFactory.SECURE_ACTION_TEMPLATE;
              }
              else
              {
                  key = URLTemplatesFactory.ACTION_TEMPLATE;
              }
          }
          else if ( urlType.equals( URLType.RESOURCE ) )
          {
              if ( needsToBeSecure )
              {
                  key = URLTemplatesFactory.SECURE_RESOURCE_TEMPLATE;
              }
              else
              {
                  key = URLTemplatesFactory.RESOURCE_TEMPLATE;
              }
          }
  
          return key;
      }
docs: Returns a key for the URL template type given the URL type and a
  flag indicating a secure URL or not.
  
  @param urlType the type of URL (ACTION, RESOURCE).
  @param needsToBeSecure indicates that the template should be for a secure URL.
  @return the key/type of template to use.