// refresh environment variables in process config
installation.getEnvironment().putAll(env);
// re-configure the install using new environment variables
controller.configure();
// restart if it was running before
if (running) {
controller.start();
}