context.addFilter(new FilterHolder(filter), "/*", EnumSet.of(DispatcherType.REQUEST));
context.start();
final BlockingArrayQueue<Message> queue = new BlockingArrayQueue<>(100, 100);
final AtomicBoolean connected = new AtomicBoolean(false);
BayeuxClient client = new BayeuxClient(cometdURL, new LongPollingTransport(null, httpClient))
{
@Override
public void onFailure(Throwable failure, List<? extends Message> messages)
{
Message.Mutable problem = newMessage();