public static SQLTemplate compile(String s) { Validate.notNull(s); try { SQLTemplate st = new SQLTemplate(); st.template = new Template("", new StringReader(s), CONF, Charsets.DEFAULT); return st; } catch (IOException e) { throw new ServerException(BaseErrors.PLATFORM_SQL_TEMPLATE_ERROR, e); } }