class CmsAspspTppServiceInternal implements CmsAspspTppService {

    @NotNull
    @Override
    public Optional<TppInfo> getTppInfo(@NotNull String tppAuthorisationNumber, @NotNull String instanceId) {
        Optional<TppInfoEntity> tppInfoEntityOptional = tppInfoRepository.findFirstByAuthorisationNumberAndInstanceId(tppAuthorisationNumber, instanceId);
        return tppInfoEntityOptional.map(tppInfoMapper::mapToTppInfo);
    }

}