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

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

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