public CustomString coerceOutput(final Object object)
throws TemplateOutputCastException
{
if (!(object instanceof String))
{
throw new TemplateOutputCastException("Output " + object
+ " is not a string, and cannot be coerced to "
+ CustomString.class.getName());
}
return new CustomString((String) object);
}