private String convertToConfigString(Map<String, Object> values) {
		try (StringWriter writer = new StringWriter()) {
			Configuration config = new Configuration(DEFAULT_INCOMPATIBLE_IMPROVEMENTS);
			config.setClassForTemplateLoading(this.getClass(), "/ngrinder_agent_home_template");
			config.setObjectWrapper(new DefaultObjectWrapper(DEFAULT_INCOMPATIBLE_IMPROVEMENTS));
			Template template = config.getTemplate(getTemplateName());
			template.process(values, writer);
			return writer.toString();
		} catch (Exception e) {
			throw processException("Error while fetching the script template.", e);
		}
	}
Get the agent.config content replacing the variables with the given values.

@param values       map of configurations.
@return generated string
ngrinder-controller/src/main/java/org/ngrinder/packages/PackageHandler.java