private String getAuthToLocalRules(){
    Cluster cluster = getCluster();
    String authToLocalRules = null;
    if (cluster != null) {
      authToLocalRules = cluster.getConfigurationValue(CORE_SITE, HADOOP_SECURITY_AUTH_TO_LOCAL);
    }else if(viewInstanceEntity != null) {
      authToLocalRules = viewInstanceEntity.getPropertyMap().get(HDFS_AUTH_TO_LOCAL);
    }
    return authToLocalRules;
  }
Construct a view context from the given view entity.

@param viewEntity    the view entity
@param viewRegistry  the view registry
ambari-server/src/main/java/org/apache/ambari/server/view/ViewContextImpl.java