@RequiresSession
  public List<ServiceConfigEntity> getServiceConfigs(Long clusterId) {
    TypedQuery<ServiceConfigEntity> query = entityManagerProvider.get().createNamedQuery(
        "ServiceConfigEntity.findAll", ServiceConfigEntity.class);

    query.setParameter("clusterId", clusterId);

    return daoUtils.selectList(query);
  }
Get all service configs for the given cluster.
@param clusterId Cluster Id
@return Collection of service configs in the given cluster.
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ServiceConfigDAO.java