@Override
public void install(InstallContext installContext, ProcessConfig config, String id, File installDir) throws Exception {
Map<String, String> templates = Maps.filterKeys(configuration, isTemplate);
Map<String, String> plainFiles = Maps.difference(configuration, templates).entriesOnlyOnLeft();
ProcessManagerService.substituteEnvironmentVariableExpressions((Map)variables, config.getEnvironment());
Map<String, String> renderedTemplates = Maps.transformValues(templates, new MvelTemplateRendering(variables));
File baseDir = ProcessUtils.findInstallDir(installDir);
applyTemplates(installContext, renderedTemplates, baseDir);
applyPlainConfiguration(installContext, plainFiles, baseDir);
}