is what I used to do in java, problem is that downstream is Success and I need it to be its superclass CategoryApiEvent
in java if it didng work i solve it via specifying the return type infered generic <CategoryApiEvent>map(categoryData -> new Success(categoryData))