code: public static UnixUserGroupInformation createImmutable(String[] ugi) {
      return new UnixUserGroupInformation(ugi) {
        public void readFields(DataInput in) throws IOException {
          throw new UnsupportedOperationException();
        }
      };
    }
docs: Create an immutable {@link UnixUserGroupInformation} object.