class ConsentServiceRemote implements ConsentServiceEncrypted {

    @Override
    public CmsResponse<ConsentStatus> getConsentStatusById(String consentId) {
        try {
            ConsentStatusResponse response = consentRestTemplate.getForEntity(consentRemoteUrls.getConsentStatusById(), ConsentStatusResponse.class, consentId).getBody();
            if (response != null) {
                return CmsResponse.<ConsentStatus>builder()
                           .payload(response.getConsentStatus())
                           .build();
            }

            log.info("Couldn't get consent status by consent ID {}", consentId);
        } catch (CmsRestException cmsRestException) {
            log.info("Couldn't get consent status by consent ID {}, HTTP response status: {}",
                     consentId, cmsRestException.getHttpStatus());
        }

        return CmsResponse.<ConsentStatus>builder()
                   .error(TECHNICAL_ERROR)
                   .build();
    }

}