Make use of the new @EnableWebSocket Java config