NetBeans 8.0.1 migration
Long polling implementation.