class SpiAspspConsentDataProviderImpl implements SpiAspspConsentDataProvider {

    @Override
    @NotNull
    public byte[] loadAspspConsentData() {
        byte[] readData = aspspDataService.readAspspConsentData(encryptedConsentId)
                                     .map(AspspConsentData::getAspspConsentData)
                                     .orElse(EMPTY_BYTE_ARRAY);
        lastKnownData = readData;
        return readData;
    }

}