*/
@Override
public void onRemoveAtmosphereResource(Broadcaster b, AtmosphereResource r) {
if (DefaultBroadcaster.class.isAssignableFrom(b.getClass())) {
DefaultBroadcaster broadcaster = DefaultBroadcaster.class.cast(b);
if (broadcaster.lifecycleHandler() != null) {
broadcaster.lifecycleHandler().offIfEmpty(broadcaster);
}
}
}