ExternalTestsModel (final IonReader reader, final ReadContext context) { if (reader.next() == null) return null; reader.stepIn(); ExternalTestsModel model = context.objectMap.computeIfAbsent(readInt(reader, OBJECT_ID_FIELD), new SimpleObjectFactory<ExternalTestsModel>() { @Override public ExternalTestsModel create() { DefaultExternalTestsModel testsModel = new DefaultExternalTestsModel(); testsModel.setSourceTestMappings(readTestSourceMappings(reader, context)); return testsModel; } }); reader.stepOut(); return model; }