AtomicBoolean b = new AtomicBoolean(false);
public void onRequest(AtmosphereResource<HttpServletRequest, HttpServletResponse> event) throws IOException {
if (!b.getAndSet(true)) {
// Will take 3 broadcast before it get pushed back.
StringFilterAggregator a = new StringFilterAggregator(25);
event.getBroadcaster().getBroadcasterConfig().addFilter(a);
try {
event.suspend();
} finally {
suspended.countDown();