private static String flattenListToString(Set<Long> list) {
    return list.stream()
            .map(Object::toString)
            .collect(Collectors.joining(FILE_ENTRY_SEPARATOR));
  }
Gets &amp; checks whether the database is target of replication.
@param dbName name of database
@param hive hive object
@return true, if the database has repl.target.for property set.
@throws HiveException
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/OptimisedBootstrapUtils.java