/** * Get coordinator action * * @param request servlet request * @param response servlet response * @return JsonBean CoordinatorActionBean * @throws XServletException * @throws BaseEngineException */ private JsonBean getCoordinatorAction(HttpServletRequest request, HttpServletResponse response) throws XServletException, BaseEngineException { JsonBean actionBean = null; CoordinatorEngine coordEngine = Services.get() .get(CoordinatorEngineService.class) .getCoordinatorEngine(getUser(request), getAuthToken(request)); String actionId = getResourceName(request); try { actionBean = coordEngine.getCoordAction(actionId); } catch (CoordinatorEngineException ex) { throw new XServletException(HttpServletResponse.SC_BAD_REQUEST, ex); } return actionBean; }