@Override
    public HivePolicyProvider next() {
      try {
        if (currentAuthorizerPosition < authorizers.size()) {
          return authorizers.get(currentAuthorizerPosition++).getHivePolicyProvider();
        } else {
          return authorizationProviders.get(authorizationProviderPosition++).getHivePolicyProvider();
        }
      } catch (HiveAuthzPluginException e) {
        throw new RuntimeException(e);
      }
    }
Wrapper of policy provider no matter this is in authorizer v1 or v2
ql/src/java/org/apache/hadoop/hive/ql/security/authorization/PolicyProviderContainer.java