class AuthorisationServiceRemote implements AuthorisationServiceEncrypted {

    @Override
    public CmsResponse<Authorisation> updateAuthorisation(String authorisationId, UpdateAuthorisationRequest request) {
        try {
            ResponseEntity<Authorisation> responseEntity = consentRestTemplate.exchange(authorisationRemoteUrls.updateAuthorisation(), HttpMethod.PUT, new HttpEntity<>(request), Authorisation.class, authorisationId);
            return CmsResponse.<Authorisation>builder()
                       .payload(responseEntity.getBody())
                       .build();
        } catch (CmsRestException cmsRestException) {
            log.info("Couldn't update authorisation by authorisation ID {}, HTTP response status: {}",
                     authorisationId, cmsRestException.getHttpStatus());
        }

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

}