Update AbstractQuantityFactory.java

Fixed SE only dependencies