template, String.class);
template = expr.getValue(context).toString();
// now process any embedded URI template parameters
UriBuilder ub=applyLinkStyle(template, link.getLinkStyle(), uriInfo);
UriTemplateParser parser = new UriTemplateParser(template);
List<String> parameterNames = parser.getNames();
Map<String, Object> valueMap = getParameterValues(parameterNames, link, context);
URI uri = ub.buildFromMap(valueMap);
return uri;
}