response.setStatus(200);
}
}
} else if (sessionId != null && sessionId.length() > 0) {
logger.trace("Session NULL but not sessionId : wrong session id or the connection was DISCONNECTED");
response.sendError(AtmosphereResponse.SC_BAD_REQUEST);
} else {
if ("GET".equals(request.getMethod())) {
session = connect(resource, atmosphereHandler, sessionFactory);
if (session == null) {
response.sendError(AtmosphereResponse.SC_SERVICE_UNAVAILABLE);