class DcImporterService implements ApplicationListener<ActeHistoryEvent> {

    public Optional<String> getAccessTokenForDataOwner() {
        Optional<LocalAuthority> localAuthority = localAuthorityService.getBySiren(dataOwnerSiren);

        if(localAuthority.isPresent())
            return externalRestService.getAccessTokenFromKernel(localAuthority.get());
        else {
            LOGGER.warn("[getAccessTokenForDataOwner] Not found local authority for configured dataOwnerSiren {}", dataOwnerSiren);
            return Optional.empty();
        }
    }

    @Autowired public  DcImporterService(ExternalRestService externalRestService, LocalAuthorityService localAuthorityService, RestTemplate restTemplate, ActeService acteService);

}