@Override
 public void sessionInactivated(Session session) {
   server.getSessionRegistry().remove((GlowSession) session);
 }
 @Override
 public GlowSession newSession(Channel c) {
   GlowSession session = new GlowSession(server, c, this);
   server.getSessionRegistry().add(session);
   return session;
 }