public static Table setFrom(String dbTable, Table table) throws SemanticException{
    TableName name = ofNullable(dbTable);
    table.setTableName(name.getTable());
    table.setDbName(name.getDb());
    return table;
  }
Set a @{@link Table} object's table and db names based on the provided string.
@param dbTable the dbtable string
@param table the table to update
@return the table
@throws SemanticException
ql/src/java/org/apache/hadoop/hive/ql/parse/HiveTableName.java