class PisPsuDataService {

    public List<PsuIdData> getPsuDataByPaymentId(String paymentId) {
        CmsResponse<List<PsuIdData>> cmsResponse = pisCommonPaymentServiceEncrypted.getPsuDataListByPaymentId(paymentId);

        if (cmsResponse.hasError()) {
            log.info("Payment-ID [{}]. Can't get PsuData by payment ID because PsuData list not found by id at cms.",
                     paymentId);
            return Collections.emptyList();
        }

        return cmsResponse.getPayload();
    }

}