event.getBroadcaster().broadcast(request.getAttribute(CometContext.PUBLISH_DATA), channelSubscribers);
//Complete forwarded PrimeFaces ajax request
LifecycleFactory factory = (LifecycleFactory) FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
Lifecycle lifecycle = factory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE);
lifecycle.render(FacesContext.getCurrentInstance());
}
}
public void onStateChange(AtmosphereResourceEvent event) throws IOException {
if(event.getMessage() == null)