Update ConnectionDetector.java