code: public static List<Audit> findByEntity(EntityManager em, JPAEntity entity) {
          return findByEntity(em, entity, null);
      }
docs: Finds all alerts for the given entity.
  
  @param   em      Entity manager. Cannot be null.
  @param   entity  The entity for which all audits will be returned. Cannot be null.
  
  @return  All alerts belongs to given entity.