public void disconnect() {
   boolean connected = _bayeux.removeServerSession(this, false);
   if (connected) {
     ServerMessage.Mutable message = _bayeux.newMessage();
     message.setChannel(Channel.META_DISCONNECT);
     message.setSuccessful(true);
     deliver(this, message);
     flush();
   }
 }
 public void deliver(Session sender, String channelId, Object data) {
   ServerMessage.Mutable message = _bayeux.newMessage();
   message.setChannel(channelId);
   message.setData(data);
   deliver(sender, message);
 }