The pcgen.io.ExportHandler.exportCharacterUsingFreemarker method exposes the pc and ExportHandler objects to the sheet for use by the PCGen directives. Instead these values should be provided to the constructor for the directives and the objects removed from template access.