code: public static String format(String uriTemplate, Collection<?> args) {
  
          StringBuilder sb = new StringBuilder();
  
          int beginIndex = 0;
  
          for (Object arg : args) {
  
              int endIndex = uriTemplate.indexOf(PLACE_HOLDER, beginIndex);
  
              sb.append(uriTemplate.subSequence(beginIndex, endIndex)).append(arg);
  
              beginIndex = endIndex + PLACE_HOLDER_LENGTH;
          }
  
          sb.append(uriTemplate.substring(beginIndex));
  
          return sb.toString();
  
      }
docs: This method instantiates the input uri template by arguments
  <p>
  Example:
  <p>
  If {@code args = ["A", 1]}, then
  <p>
  {@code  URITemplates.format("http://example.org/{}/{}", args)}
  results {@code "http://example.org/A/1" }
  
  @see #format(String, Object...)