RepositoriesModel (final IonReader reader, final ReadContext context) { if (reader.next() == null) return null; reader.stepIn(); RepositoriesModel model = context.objectMap.computeIfAbsent(readInt(reader, OBJECT_ID_FIELD), new SimpleObjectFactory<RepositoriesModelImpl>() { @Override public RepositoriesModelImpl create() { RepositoriesModelImpl repositoriesModel = new RepositoriesModelImpl(); List<MavenRepositoryModel> repositoryModels = readRepositories(reader, context); for (MavenRepositoryModel entry : repositoryModels) { repositoriesModel.add(entry); } return repositoriesModel; } }); reader.stepOut(); return model; }