if (tyrusEndpoints.size() > 0) {
UrsusTyrusServerContainer ursusTyrusServerContainer = null;
try {
ursusTyrusServerContainer = new UrsusTyrusServerContainer(tyrusEndpoints,
configuration.getHttpServer().getRootContext(), configuration.getTyrus().getIncomingBufferSize());
GrizzlyServerFilter grizzlyServerFilter = new GrizzlyServerFilter(ursusTyrusServerContainer);
listener.registerAddOn(new TyrusAddOn(grizzlyServerFilter));
} catch (DeploymentException e) {
throw new RuntimeException("Unable to deploy WebSocket endpoints", e);
}
}