AsyncFilter cometFilter = GrizzlyEmbeddedHttp.loadCometAsyncFilter(habitat);
if (cometFilter == null) {
return;
}
if (getEmbeddedHttp().getAsyncHandler() == null) {
AsyncHandler asyncHandler = new DefaultAsyncHandler();
getEmbeddedHttp().setAsyncHandler(asyncHandler);
}
getEmbeddedHttp().getAsyncHandler().addAsyncFilter(cometFilter);
final ProtocolChainInstanceHandler pcih =
getEmbeddedHttp().getController().getProtocolChainInstanceHandler();