private List<AtlasObjectId> getItemsToExport(AtlasReplInfo atlasReplInfo) throws SemanticException {
    List<AtlasObjectId> atlasObjectIds = new ArrayList<>();
    if (atlasReplInfo.isTableLevelRepl()) {
      final List<String> tableQualifiedNames = getQualifiedNames(atlasReplInfo.getSrcCluster(), atlasReplInfo.getSrcDB(),
              atlasReplInfo.getTableListFile(), atlasReplInfo.getConf());
      for (String tableQualifiedName : tableQualifiedNames) {
        atlasObjectIds.add(new AtlasObjectId(ATLAS_TYPE_HIVE_TABLE, ATTRIBUTE_QUALIFIED_NAME, tableQualifiedName));
      }
    } else {
      final String qualifiedName = getQualifiedName(atlasReplInfo.getSrcCluster(), atlasReplInfo.getSrcDB());
      atlasObjectIds.add(new AtlasObjectId(ATLAS_TYPE_HIVE_DB, ATTRIBUTE_QUALIFIED_NAME, qualifiedName));
    }
    return atlasObjectIds;
  }
Helper class to create export/import request.
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/atlas/AtlasRequestBuilder.java