code: public static String template(final String template, final Object root)
  	{
  		StrSubstitutor substitutor = new StrSubstitutor(newOgnlLookup(root));
  
  		return substitutor.replace(template);
  	}
docs: Helper method that uses {@link StrSubstitutor} and evaluates OGNL expressions within <code>${...}</code> blocks
  
  @param template
  the template text
  @param root
  the root object for any OGNL invocations
  
  @return