public boolean isKerberosPrincipalNameProperty(String service, String type, String propertyName) {
    return (serviceConfigurations.containsKey(service) &&
            serviceConfigurations.get(service).containsKey(type) &&
            serviceConfigurations.get(service).get(type).containsKey(propertyName) &&
            serviceConfigurations.get(service).get(type).get(propertyName).getPropertyTypes().
                contains(PropertyInfo.PropertyType.KERBEROS_PRINCIPAL));
  }
Get required config properties for the specified service which belong to the specified property type.

@param service       service name
@param propertyType  property type

@return collection of required properties for the given service and property type
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/Stack.java