class EuGrantTransferServiceImpl implements EuGrantTransferService {

    @Override
    public ServiceResult<FileAndContents> downloadGrantAgreement(long applicationId) {
        return findGrantTransferByApplicationId(applicationId).andOnSuccess(grantTransfer ->
                fileEntryService.findOne(grantTransfer.getGrantAgreement().getId())
                        .andOnSuccess(this::getFileAndContents));
    }

}