class SpringRestJobsService extends RestJobsService {

    @Override
    public ZonedDateTime getScheduledTime(String id) {
        try {
            return restTemplate.getForObject(getJobsServiceUri() + "/{id}", Job.class, id).getExpirationTime();
        } catch (NotFound e) {
            throw new JobNotFoundException(id);
        } catch (RestClientException e) {
            throw new RuntimeException(e);
        }
    }

    @Autowired public  SpringRestJobsService(
            @Value("${kogito.jobs-service.url}") String jobServiceUrl,
            @Value("${kogito.service.url}") String callbackEndpoint,
            @Autowired(required=false) RestTemplate restTemplate);
      SpringRestJobsService();

}