final TextTemplate templateParser = new TextTemplate(config); templateParser.setKeepEncryptedAsVar(true); templateParser.setTrim(true); templateParser.setTextParsingExtensions( config.getProperty(ConfigurationGenerator.PARAM_TEMPLATES_PARSING_EXTENSIONS, "xml,properties,nx"));