code: @SuppressWarnings("unchecked")
      public <T extends WebLocatorAbstractBuilder> T setTemplate(final String key, final String value) {
          pathBuilder.setTemplate(key, value);
          return (T) this;
      }
docs: For customize template please see here: See http://docs.oracle.com/javase/7/docs/api/java/util/Formatter.html#dpos
  
  @param key   name template
  @param value template
  @param <T>   the element which calls this method
  @return this element