RESTEASY-1125

Fix for RESTEASY-1125.