I still hope to get rid of the parameter. Asked on resteasy-users ML but didn't get a reply yet.

But I wouldn't consider this interface as public, it's not intended to be acccessed by the user. Probably all that stuff should actually go into some _impl_ package.