class ConsentServiceRemote implements ConsentServiceEncrypted {

    @Override
    public CmsResponse<List<PsuIdData>> getPsuDataByConsentId(String consentId) {
        try {
            ResponseEntity<List<PsuIdData>> response =
                consentRestTemplate.exchange(consentRemoteUrls.getPsuDataByConsentId(),
                                             HttpMethod.GET,
                                             null,
                                             new ParameterizedTypeReference<List<PsuIdData>>() {
                                             },
                                             consentId);
            return CmsResponse.<List<PsuIdData>>builder()
                       .payload(response.getBody())
                       .build();
        } catch (CmsRestException cmsRestException) {
            log.info("Couldn't get PSU Data by consent ID {}, HTTP response status: {}",
                     consentId, cmsRestException.getHttpStatus());
        }

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

}