private void updateConfig(String pid, Installation installation, Map<String, String> env) throws ConfigurationException {
try {
final ProcessController controller = installation.getController();
final boolean running = (controller.status() == 0);
// stop if running, since config may not be changed while process is running
if (running) {
controller.stop();
}