code: public static IWebSocketConnection getConnection4Session(final String _sessionId)
      {
          IWebSocketConnection ret = null;
          if (RegistryManager.getCache().containsKey(_sessionId)) {
              final UserSession userSession = RegistryManager.getCache().get(_sessionId);
              if (userSession.getConnectionKey() != null) {
                  final IWebSocketConnectionRegistry registry = WebSocketSettings.Holder.get(EFapsApplication.get())
                                  .getConnectionRegistry();
                  ret = registry.getConnection(EFapsApplication.get(),
                                  userSession.getSessionId(), userSession.getConnectionKey());
              }
          }
          return ret;
      }
docs: Gets the connection 4 session.
  
  @param _sessionId the session id
  @return the connection 4 session