// Path: src/de/endrullis/utils/VelocityUtils.java
// public class VelocityUtils {
// 	private static boolean initialized = false;
// 
// 	public static void init() throws Exception {
// 		if (initialized) return;
// 
// 		// initialize Velocity
// 		InputStream inputStream = StreamUtils.getInputStream("velocity.properties");
// 		Properties properties = new Properties();
// 		properties.load(inputStream);
// 		Velocity.init(properties);
// 
// 		initialized = true;
// 	}
// 
// 
// 	public static Template getTemplate(String name) throws Exception {
// 		init();
// 
// 		InputStream resourceAsStream = VelocityUtils.class.getResourceAsStream("/" + name);
// 		if (resourceAsStream == null) throw new ResourceNotFoundException("Resource " + name + " could not be found");
// 
// 		// get the template
// 		return Velocity.getTemplate(name);
// 	}
// }


import de.endrullis.utils.VelocityUtils;
import org.apache.velocity.Template;
import org.apache.velocity.VelocityContext;
import java.io.StringWriter;
import java.io.Writer;
package velocity;



/**
 * Hello World using Velocity.
 */
public class HelloWorld {
	public static void main(String[] args) throws Exception {
		// get the template
// Path: src/de/endrullis/utils/VelocityUtils.java
// public class VelocityUtils {
// 	private static boolean initialized = false;
// 
// 	public static void init() throws Exception {
// 		if (initialized) return;
// 
// 		// initialize Velocity
// 		InputStream inputStream = StreamUtils.getInputStream("velocity.properties");
// 		Properties properties = new Properties();
// 		properties.load(inputStream);
// 		Velocity.init(properties);
// 
// 		initialized = true;
// 	}
// 
// 
// 	public static Template getTemplate(String name) throws Exception {
// 		init();
// 
// 		InputStream resourceAsStream = VelocityUtils.class.getResourceAsStream("/" + name);
// 		if (resourceAsStream == null) throw new ResourceNotFoundException("Resource " + name + " could not be found");
// 
// 		// get the template
// 		return Velocity.getTemplate(name);
// 	}
// }


// Path: test/src/velocity/HelloWorld.java
import de.endrullis.utils.VelocityUtils;
import org.apache.velocity.Template;
import org.apache.velocity.VelocityContext;
import java.io.StringWriter;
import java.io.Writer;

package velocity;



/**
 * Hello World using Velocity.
 */
public class HelloWorld {
	public static void main(String[] args) throws Exception {
		// get the template
		Template template = VelocityUtils.getTemplate("templates/HelloWorld.vm");