Made ProcessorWrapper generic based, to get the wrapped processor back in a typesafe way.