throw new RuntimeException(e);
}
// get client bean
HttpSession session = request.getSession();
ClientBean clientBean = (ClientBean) session.getAttribute(CLIENT_BEAN);
if (clientBean == null) {
ServletContext context = session.getServletContext();
BackendBean backendBean = (BackendBean) context.getAttribute(BACKEND_BEAN);
if (backendBean == null) {
backendBean = new BackendBean();
context.setAttribute(BACKEND_BEAN, backendBean);
}
clientBean = new ClientBean();
clientBean.setBackendBean(backendBean);
session.setAttribute(CLIENT_BEAN, clientBean);
}
// process request
FlexResponse flexResponse;