class AccountServiceRemote implements AccountServiceEncrypted {

    @Override
    public boolean saveNumberOfTransactions(String consentId, String resourceId, int numberOfTransactions) {
        try {
            ResponseEntity<Boolean> response = consentRestTemplate.exchange(accountRemoteUrls.saveNumberOfTransactions(),
                                                                            HttpMethod.PUT, new HttpEntity<>(numberOfTransactions), Boolean.class, consentId, resourceId);

            return BooleanUtils.isTrue(response.getBody());
        } catch (CmsRestException cmsRestException) {
            log.info("Couldn't save number of transactions to CMS");
        }

        return false;
    }

}