class ConsentServiceRemote implements ConsentServiceEncrypted {

    @Override
    public CmsResponse<CmsCreateConsentResponse> createConsent(CmsConsent cmsConsent) {
        try {
            ResponseEntity<CmsCreateConsentResponse> restResponse = consentRestTemplate.postForEntity(consentRemoteUrls.createConsent(), cmsConsent, CmsCreateConsentResponse.class);
            return CmsResponse.<CmsCreateConsentResponse>builder()
                       .payload(restResponse.getBody())
                       .build();
        } catch (CmsRestException cmsRestException) {
            log.info("Couldn't create new consent, HTTP response status: {}", cmsRestException.getHttpStatus());
        }
        return CmsResponse.<CmsCreateConsentResponse>builder()
                   .error(TECHNICAL_ERROR)
                   .build();
    }

}