Update SerialFactory.java