Create ConnectionDetector.java