Update FactoryImpl.java