/**
  * {@inheritDoc}
  *
  * <p>Overridden to make it visible to other classes in this package.
  */
 @Override
 protected void registerSession(Endpoint endpoint, WsSession wsSession) {
   super.registerSession(endpoint, wsSession);
   if (wsSession.isOpen()
       && wsSession.getUserPrincipal() != null
       && wsSession.getHttpSessionId() != null) {
     registerAuthenticatedSession(wsSession, wsSession.getHttpSessionId());
   }
 }