public void setPolicyItems(List<RangerPolicyItem> policyItems) {
    if (this.policyItems == null) {
      this.policyItems = new ArrayList<>();
    }

    if (this.policyItems == policyItems) {
      return;
    }

    this.policyItems.clear();

    if (policyItems != null) {
      this.policyItems.addAll(policyItems);
    }
  }
@param policyItems the policyItems to set
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ranger/RangerPolicy.java