Refactoring TyrusWebSocketEngine (removing a lot of anonymous classes)