Update CapabilitiesFactory.java