synchronized (response) {
AtmosphereResourceEventListenerAdapter a =
(AtmosphereResourceEventListenerAdapter) servletReq.getAttribute(CALLBACK_JAVASCRIPT_PROTOCOL);
if (a != null) {
try {
a.onSuspend(r.getAtmosphereResourceEvent());
} catch (Exception ex) {
logger.debug("AtmosphereFilter error", ex);
} finally {
servletReq.removeAttribute(CALLBACK_JAVASCRIPT_PROTOCOL);
}