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

    return daoUtils.selectList(query);
  }
Gets all of the defined stacks.

@return all of the stacks loaded from resources or an empty list (never
        {@code null}).
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/StackDAO.java