private void addLocationTransform(List<AttributeTransform> transforms, String srcFsUri, String tgtFsUri) {
    transforms.add(create(
            HIVE_DB_LOCATION, "STARTS_WITH_IGNORE_CASE: " + srcFsUri,
            HIVE_DB_LOCATION, "REPLACE_PREFIX: = :" + srcFsUri + "=" + tgtFsUri
            )
    );
    transforms.add(create(
            HIVE_SD_LOCATION, "STARTS_WITH_IGNORE_CASE: " + srcFsUri,
            HIVE_SD_LOCATION, "REPLACE_PREFIX: = :" + srcFsUri + "=" + tgtFsUri
            )
    );
  }
Helper class to create export/import request.
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/atlas/AtlasRequestBuilder.java