Update ConnectionCheckingFactory.java

For SIngleton make changes