workarounds for resteasy 2.3.7 bugs