code: public String expand() throws VariableExpansionException
      {
          String template = getTemplate();
          for (Expression expression : expressions)
          {
              final String replacement = expressionReplacementString(expression, false);
              template = template.replaceAll(expression.getReplacementPattern(), replacement);
          }
          return template;
      }
docs: Applies variable substitution the URI Template and returns the expanded
  URI.
  
  @return the expanded URI as a String
  @throw VariableExpansionException
  @since 1.0