class WebSocketMessagingHandlerConfiguration {


    @Bean
    public HandlerMapping webSocketMessagingHandlerMapping(MessagingManager messagingManager,
                                           UserTokenManager userTokenManager,
                                           ReactiveAuthenticationManager authenticationManager) {<FILL_FUNCTION_BODY>}

    @Bean
    @ConditionalOnMissingBean
    public WebSocketHandlerAdapter webSocketHandlerAdapter() {
        return new WebSocketHandlerAdapter();
    }


}



        WebSocketMessagingHandler messagingHandler=new WebSocketMessagingHandler(
            messagingManager,
            userTokenManager,
            authenticationManager
        );
        final Map<String, WebSocketHandler> map = new HashMap<>(1);
        map.put("/messaging/**", messagingHandler);

        final SimpleUrlHandlerMapping mapping = new SimpleUrlHandlerMapping();
        mapping.setOrder(Ordered.HIGHEST_PRECEDENCE);
        mapping.setUrlMap(map);
        return mapping;
    
<no_super_class>