public Set<PropertyInfo> getServiceProperties(Cluster cluster, String serviceName) throws AmbariException {
    // The original implementation of this method is to return all properties regardless of whether
    // they should be excluded or not.  By setting removeExcluded to false in the method invocation
    // below, no attempt will be made to remove properties that exist in excluded types.
    Service service = cluster.getService(serviceName);

    return getServiceProperties(service.getDesiredStackId(), serviceName, false);
  }
Gets the configuration value referenced by the specified placeholder from
the cluster configuration. This will take a configuration placeholder such
as {{hdfs-site/foo}} and return the value of {@code foo} defined in
{@code hdfs-site}.

@param cluster     the cluster to use when rendering the placeholder value (not
                   {@code null}).
@param placeholder the placeholder value, such as {{hdfs-site/foobar}} (not
                   {@code null} )
@return the configuration value, or {@code null} if none.
@throws AmbariException if there was a problem parsing the placeholder or retrieving the
                        referenced value.
ambari-server/src/main/java/org/apache/ambari/server/state/ConfigHelper.java