class DcImporterService implements ApplicationListener<ActeHistoryEvent> {

    public ResponseEntity<?> newResource(String type, String project, Map<String, Object> properties, String accessToken) throws RestClientResponseException {
        HttpHeaders headers = new HttpHeaders();
        headers.add(HttpHeaders.CONTENT_TYPE, ContentType.APPLICATION_JSON.getMimeType());
        headers.add(HttpHeaders.AUTHORIZATION, "Bearer ".concat(accessToken));
        headers.add("X-Datacore-Project", project);

        return restTemplate.postForEntity(dcImporterUrl.concat("/dc/type/{type}"), new HttpEntity<>(properties, headers), String.class, type);
    }

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

}