class PushHandler {

    void onConnect(AtmosphereResource resource) {
        if (isLiveReloadConnection(resource)) {
            BrowserLiveReloadAccess access = service.getInstantiator()
                    .getOrCreate(BrowserLiveReloadAccess.class);
            BrowserLiveReload liveReload = access.getLiveReload(service);
            liveReload.onConnect(resource);
        } else {
            callWithUi(resource, establishCallback);
        }
    }

    public  PushHandler(VaadinServletService service);

}