public static StringTemplate getTemplateFrom(StringTemplateGroup group,
            String template)
    {
        try
        {
            return group.lookupTemplate(template);
        }
        catch (IllegalArgumentException e)
        {
            return null;
        }
    }
public static StringTemplate getTemplateFrom ( StringTemplateGroup group , String template ) { try { return group . lookupTemplate ( template ) ; } catch ( IllegalArgumentException e ) { return null ; } }
Returns null if template is not found.