final AtomicReference<StringBuilder> b = new AtomicReference<StringBuilder>(new StringBuilder());
final CountDownLatch latch = new CountDownLatch(3);
final CountDownLatch flatch = new CountDownLatch(1);
final CountDownLatch elatch = new CountDownLatch(1);
Config config = new Config.Builder()
.port(port)
.host("127.0.0.1")
.resource("/", new AtmosphereHandler() {
private final AtomicReference<AtmosphereResource> resource = new AtomicReference<AtmosphereResource>();