public static User create(UserGroupInformation ugi) {
    if (ugi == null) {
      return null;
    }
    return new SecureHadoopUser(ugi);
  }
Wraps an underlying {@code UserGroupInformation} instance.
@param ugi The base Hadoop user
hbase-common/src/main/java/org/apache/hadoop/hbase/security/User.java