code: public static boolean isExpired(TemporalAt entity) {
      Date now = new Date();
      if (null == entity.getBeginAt()) return true;
      return entity.getBeginAt().after(now) || (null != entity.getEndAt() && !now.before(entity.getEndAt()));
    }
docs: <p>
  isExpired.
  </p>
  
  @param entity a {@link org.beangle.commons.entity.TemporalAt} object.
  @return a boolean.