}
StringWriter ret = new StringWriter();
template.merge(context, ret);
renderedTemplate = ret.toString();
} catch (ResourceNotFoundException e) {
throw new CRException(e);
} catch (ParseErrorException e) {
throw new CRException(e);
} catch (Exception e) {
throw new CRException(e);
} finally {
this.objectstoput = new HashMap<String, Object>();
}
log.debug("Velocity has been rendered in " + (System.currentTimeMillis() - s1) + "ms");
return renderedTemplate;