public static TableName of(String dbTableName) throws SemanticException {
    try {
      return fromString(dbTableName, SessionState.get().getCurrentCatalog(), SessionState.get().getCurrentDatabase());
    } catch (IllegalArgumentException e) {
      throw new SemanticException(e);
    }
  }
Accepts qualified name which is in the form of table, dbname.tablename or catalog.dbname.tablename and returns a
{@link TableName}.

@param dbTableName not null
@return a {@link TableName}
@throws SemanticException if dbTableName is null
ql/src/java/org/apache/hadoop/hive/ql/parse/HiveTableName.java