@Override
    public TTransport getTransport(TTransport trans) throws TTransportException {
      return childTransFactory.getTransport(parentTransFactory.getTransport(trans));
    }
This class helps in some aspects of authentication. It creates the proper Thrift classes for the
given configuration as well as helps with authenticating requests.

This is copied from HiveAuthFactory and modified to be used for HMS. But we should see if we can
use same code for both Hive and HMS.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/AuthFactory.java