*/
public String render(String templateName, String templateSource) throws CRException {
String renderedTemplate = null;
long s1 = System.currentTimeMillis();
StringResourceRepository rep = StringResourceLoader.getRepository();
if (rep == null) {
rep = new StringResourceRepositoryImpl();
StringResourceLoader.setRepository(StringResourceLoader.REPOSITORY_NAME_DEFAULT, rep);
}
rep.setEncoding(this.encoding);
try {
Template template = this.templates.get(templateName);
if (template == null) {
rep.putStringResource(templateName, templateSource);
template = Velocity.getTemplate(templateName);
rep.removeStringResource(templateName);
this.templates.put(templateName, template);
}
VelocityContext context = new VelocityContext();
Iterator<String> it = this.objectstoput.keySet().iterator();