// Might be better of just hand rolling something...
//
VelocityContext context = createContext();
VelocityEngine velocity = new VelocityEngine();
velocity.setProperty(Velocity.FILE_RESOURCE_LOADER_PATH, sourceDir.getAbsolutePath());
// Don't spit out any logs
velocity.setProperty(Velocity.RUNTIME_LOG_LOGSYSTEM_CLASS, "org.apache.velocity.runtime.log.NullLogSystem");
velocity.init();
Template template = velocity.getTemplate(planFileName);
StringWriter writer = new StringWriter();
template.merge(context, writer);
String plan = writer.toString();