private void getOngoingSessions( String client, String login, HttpServletRequest request, HttpServletResponse response) throws IOException { List<SessionProp> sessionProps = Program.getOngoingSessions( client, ServletUtils.getIntParam(request, "dateYYYYMMDD"), login); ServletUtils.setJson(response, new APIResponse().status(Status.SUCCESS).object(sessionProps)); }