Since you took away the setStreamID from the EventPrincipal, seems like calling ep_.reset with edm::StreamID::invalidStream would lead to a problem.