Added a convenience constructor which sets the FreeMarker configuration