The language of this section is more harsh than the language in the javadoc when it comes to the exceptions ...
> unless you are providing an anonymous class derived directly from javax.websocket.MessageHandler.Whole or javax.websocket.MessageHandler.Partial