Syncing with https://github.com/resteasy/Resteasy