code: public static UriTemplate create(String template, boolean encodeSlash, Charset charset) {
      return new UriTemplate(template, encodeSlash, charset);
    }
docs: Create a Uri Template.
  
  @param template representing the uri
  @param encodeSlash flag if slash characters should be encoded.
  @param charset for the template.
  @return a new Uri Template instance.