@RequiresSession
  public AlertNoticeEntity findNoticeByUuid(String uuid) {
    TypedQuery<AlertNoticeEntity> query = entityManagerProvider.get().createNamedQuery(
        "AlertNoticeEntity.findByUuid", AlertNoticeEntity.class);

    query.setParameter("uuid", uuid);

    return daoUtils.selectOne(query);
  }
Gets a notification with the specified UUID.

@param uuid
         the UUID of the notification to retrieve.
@return the notification or {@code null} if none exists.
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertDispatchDAO.java