if (contract.isActive(Calendar.getInstance().getTime())) { contractToReturn = contract; break;
if (contract.isActive(Calendar.getInstance().getTime())) { return contract;
    public Contract getLastContract() {        Date date = null;        Contract contractToReturn = null;        for (Contract contract : this.getContracts()) {            if (contract.isActive(Calendar.getInstance().getTime())) {                contractToReturn = contract;                break;            } else if (date == null || date.before(contract.getEndDate())) {                date = contract.getEndDate();                contractToReturn = contract;            }        }        return contractToReturn;    }