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 ; }
Applies variable substitution the URI Template and returns the expanded URI .