if (advisory.getExpires() != null && advisory.getExpires().after(currentDate)) {
if (advisory.getExpires() != null && (DateFormatUtil.equalDates("yyyyMMddHHmm", advisory.getExpires(), currentDate) || advisory .getExpires().after(currentDate))) {
    public List<IAdvisory> getAllAdvisories() throws FenixFilterException, FenixServiceException {        if (allAdvisories == null) {            allAdvisories = new ArrayList<IAdvisory>();            final Object[] argsToRead = { Advisory.class };            List<IAdvisory> allAdvisories_ = (List<IAdvisory>) ServiceUtils.executeService(null,                    "ReadAllDomainObject", argsToRead);            Date currentDate = Calendar.getInstance().getTime();            for (IAdvisory advisory : allAdvisories_) {                if (advisory.getExpires() != null && advisory.getExpires().after(currentDate)) {                    allAdvisories.add(advisory);                }            }        }        return allAdvisories;    }