@Override
  public byte[] write(RepositoryModels repositoryModels, Class<? extends RepositoryModels> modelClazz) throws IOException {
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    try (IonWriter writer = createIonWriter().build(out)) {
      write(writer, myWriteContext, repositoryModels);
    }
    return out.toByteArray();
  }
@Override
  public byte[] write(RepositoryModels repositoryModels, Class<? extends RepositoryModels> modelClazz)