String (@NotNull Stream<Consent> consents) { return ConsentAttributes.Companion.writeListToJson(consents.map(consent -> { final ConsentAttributes attribs = consent.toConsentAttributes(); final String prefix = getProductConsentKind(myProductCode, attribs.consentId); if (prefix != null) { attribs.consentId = prefix; } return attribs; }).toList()); }