public void invoke(String template, Writer w){ try { InputStream in = VelocityHelper.class.getClassLoader().getResourceAsStream(template);  if (null==in){ throw new FileNotFoundException(template); }  InputStreamReader r = new InputStreamReader(in); log.debug(Arrays.asList(vc.getKeys())); ve.evaluate(vc,w,"Running template: "+template,r); } catch (Exception e){ throw new RuntimeException("Error invoking Velocity template:"+template,e); }
public String invoke(String template){ StringWriter sw = new StringWriter(); invoke(template,sw); return sw.toString();
	public void invoke(String template, Writer w){		try {			InputStream in = VelocityHelper.class.getClassLoader().getResourceAsStream(template);						if (null==in){					throw new FileNotFoundException(template);			}			        	InputStreamReader r = new InputStreamReader(in);        	log.debug(Arrays.asList(vc.getKeys()));        	ve.evaluate(vc,w,"Running template: "+template,r);        } catch (Exception e){        	throw new RuntimeException("Error invoking Velocity template:"+template,e);		}	}