if (src == null) {
src = "[StringTemplate] Missing or error reading resource:" + location;
} else {
st = new StringTemplate();
st.template = new org.antlr.stringtemplate.StringTemplate(src);
st.template.registerRenderer(RenderableAttribute.class, new RenderableAttributeRenderer());
if (doCache) {
synchronized (CACHE) {
CACHE.put(location, st);
}
}