@SuppressFBWarnings(value= "EI_EXPOSE_REP2", justification = "intended")
  public void setClientUGI(UserGroupInformation ugi){
    this.ugi = ugi;
  }
TUGIContainingTransport associates ugi information with connection (transport).
 Wraps underlying <code>TSocket</code> transport and annotates it with ugi.
shims/common/src/main/java/org/apache/hadoop/hive/thrift/TUGIContainingTransport.java