String result = null;
String templateName = URLTemplateDescriptor.getInstance().getURLTemplateRef( DEFAULT_TEMPLATE_REF, key );
if ( templateName != null )
{
URLTemplate template = URLTemplateDescriptor.getInstance().getURLTemplate( templateName );
result = formatURIWithTemplate( request, uri, uriContext, template );
}
else
{
// no template found, just return the uri as a String...