Update BaseFactory.java