Update ConnectionFactory.java

changing this