code: public static String expand(final String templateString, Map<String, Object> values)
      throws MalformedUriTemplateException, VariableExpansionException
      {
          UriTemplate t = new UriTemplate(templateString);
          t.set(values);
          return t.expand();
      }
docs: Expands the given template string using the variable replacements
  in the supplied {@link Map}.
  
  @param templateString
  @param values
  @return the expanded URI as a String
  @throws MalformedUriTemplateException
  @throws VariableExpansionException
  @since 1.0