Added fix for issue 495 - https://github.com/resteasy/Resteasy/issues/49...

...5