private void throwAndLogTableNotFoundException(TableName tn) throws TableNotFoundException {
    String errorMsg = format("Table '%s' does not exist.", tn);
    LOG.error(errorMsg);
    throw new TableNotFoundException(errorMsg);
  }
@throws TableNotFoundException if table does not exist.
hbase-server/src/main/java/org/apache/hadoop/hbase/tool/BulkLoadHFilesTool.java