} else if (RESTART_ACTION.equals(action)) {
LifecycleResults lcresult = configurationManager.restartConfiguration(configId);
message(actionResponse, lcresult, "Restarted application<br /><br />");
} else {
message(actionResponse, null, "Invalid value for changeState: " + action + "<br /><br />");
throw new PortletException("Invalid value for changeState: " + action);
}
} catch (NoSuchConfigException e) {
// ignore this for now
message(actionResponse, null, "Configuration not found<br /><br />");
throw new PortletException("Configuration not found", e);
} catch (LifecycleException e) {
// todo we have a much more detailed report now
message(actionResponse, null, "Lifecycle operation failed<br /><br />");
throw new PortletException("Exception", e);
} catch (Exception e) {
message(actionResponse, null, "Encountered an unhandled exception<br /><br />");
throw new PortletException("Exception", e);
}
}