if (contract.getEndDate() == null || contract.getEndDate().equals(currentDate) || contract.getEndDate().after(currentDate))
if (contract.isActive(Calendar.getInstance().getTime()))
    public IContract getCurrentContract() {        Date currentDate = prepareCurrentDate();        List<IContract> contracts = this.getContracts();        for (IContract contract : contracts) {            if (contract.getEndDate() == null || contract.getEndDate().equals(currentDate)                    || contract.getEndDate().after(currentDate))                return contract;        }        return null;    }