public Action service(AtmosphereRequest req, AtmosphereResponse res)
throws IOException, ServletException {
Action action = suspended(req, res);
if (action.type() == Action.TYPE.SUSPEND) {
logger.debug("Suspending response: {}", res);
} else if (action.type() == Action.TYPE.RESUME) {
logger.debug("Resuming response: {}", res);
Action nextAction = resumed(req, res);
if (nextAction.type() == Action.TYPE.SUSPEND) {
logger.debug("Suspending after resuming response: {}", res);