code: public WsCommandContext newCommandContext(Session session) {
          return new WsCommandContext(connectionFactoryProvider.getConnectionFactory(), session,
                  wsEndpoints.getUiClientSessions(), wsEndpoints.getFeedSessions());
      }
docs: Creates a new {@link WsCommandContext} with the given {@code session}.
  
  @param session the session the present request came from
  @return a new {@link WsCommandContext}