Update ConnectionFactory.java

changing this
Merge remote-tracking branch 'upstream/master'