Update CommandFactory.java