}
@Override
public void onOpen(final Session session, final EndpointConfig endpointConfiguration) {
UndertowSession s = (UndertowSession) session;
s.setFrameHandler(new AnnotatedEndpointFrameHandler((UndertowSession)session));
if (webSocketOpen != null) {
final Map<Class<?>, Object> params = new HashMap<>();
params.put(Session.class, session);
params.put(EndpointConfig.class, endpointConfiguration);