777879808182838485
contract.setStatus(nextContractStatus); Contract savedContract = contractDAO.save(contract); if(oldStatus != nextContractStatus) { eventsDispatcher.publishEvent( new ContractStatusChanged(savedContract, oldStatus, nextContractStatus)); } } }