class AllFinanceTotalsSenderImpl implements AllFinanceTotalsSender {

    @Override
    @Transactional(readOnly = true)
    public ServiceResult<Void> sendAllFinanceTotals() {
        LOG.debug("Initiating sendAllFinanceTotals.");

        try (Stream<Application> applications = submittedApplicationsStream()) {
            applications.forEach(application ->
                    applicationFinanceTotalsSender.sendFinanceTotalsForApplication(application.getId()));
        }

        LOG.debug("Completed sendAllFinanceTotals");
        return ServiceResult.serviceSuccess();
    }

}