SessionHandler handler = manager.getSessionHandler(message);
boolean allowed = false;
if (handler != null) {
allowed = true;
HttpTransport transport = (HttpTransport) bayeuxServer
.getCurrentTransport();
HttpServletRequest req = transport.getCurrentRequest();
String username = "anonymous";
if (req != null && req.getRemoteUser() != null)
username = req.getRemoteUser();