public void setResources(Map<String, RangerPolicyResource> resources) {
    if (this.resources == null) {
      this.resources = new HashMap<>();
    }

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

    this.resources.clear();

    if (resources != null) {
      for (Map.Entry<String, RangerPolicyResource> e : resources.entrySet()) {
        this.resources.put(e.getKey(), e.getValue());
      }
    }
  }
@param resources the resources to set
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ranger/RangerPolicy.java