public static ServiceStateInfoBean getStatus(HttpServletRequest request, ServletConfig config,
HttpSession session) throws Exception {
String serviceName = "";
try {
serviceName = request.getParameter("service");
HealthMonitorServiceClient serviceClient =
new HealthMonitorServiceClient(config, session);
return serviceClient.getServiceStatus(serviceName);
} catch (Exception e) {
String msg = "Failed to get the status details of the service:" + serviceName;
log.error(msg, e);
throw new Exception(msg, e);
}