class UpdateRequestLastModifiedDateOnFundedHandler {

    @EventListener
    public void handle(final RequestFundedEvent event) {
        final Request request = requestRepository.findOne(event.getRequestId())
                                                 .orElseThrow(() -> new RuntimeException("Unable to find request"));
        request.setLastModifiedDate(LocalDateTime.now());
        requestRepository.saveAndFlush(request);
    }

    public  UpdateRequestLastModifiedDateOnFundedHandler(final RequestRepository requestRepository);

}