class CamundaClient {

    public ResponseEntity<String> get(String url) throws ApiException {
        url = env.getRequiredProperty(CommonConstants.CAMUNDA_URL) + url;
        HttpEntity<?> requestEntity = new HttpEntity<>(setHeaders());
        try {
            return restTemplate.exchange(url, HttpMethod.GET, requestEntity, String.class);
        } catch (HttpStatusCodeException e) {
            logger.error("Error returned from sending GET request to BPMN", e);
            throw createBPMNFailureException(e);
        } catch (ResourceAccessException e) {
            logger.error("Error sending GET to BPMN", e);
            ClientConnectionException clientException = new ClientConnectionException.Builder(url,
                    HttpStatus.SC_BAD_GATEWAY, ErrorNumbers.SVC_NO_SERVER_RESOURCES).build();
            throw clientException;
        }
    }

}