Update FactoryObject.java