Possible fix to RESTEASY-1116.