"Forked" from https://fisheye.codehaus.org/browse/mojo/trunk/mojo/templating-maven-plugin