http://github.com/resteasy/Resteasy/pull/550