try {
//this is not great, as we have no way to control the lifecycle
//but there is not much we can do
//todo: what options should we use here?
XnioWorker worker = Xnio.getInstance().createWorker(OptionMap.create(Options.THREAD_DAEMON, true));
Pool<ByteBuffer> buffers = new ByteBufferSlicePool(1024, 10240);
defaultContainer = new ServerWebSocketContainer(DefaultClassIntrospector.INSTANCE, UndertowContainerProvider.class.getClassLoader(), worker, buffers, new CompositeThreadSetupAction(Collections.<ThreadSetupAction>emptyList()), false);
} catch (IOException e) {
throw new RuntimeException(e);
}
}