getResponse().flushBuffer();
Thread thread = Thread.currentThread();
OutputStream out = getResponse().getOutputStream();
InputStream in = getRequest().getInputStream();
XMLNotificationWriter streamWriter = new XMLNotificationWriter(new OutputStreamWriter(out), ENCODING, boundary, thread, true, false);
logger.info("Notification stream listen started from:" + remoteId);
ChangeNotificationController.getInstance().registerListener(streamWriter);
Thread streamWriterThread = new Thread(streamWriter);