JERSEY-2721 | fixed entity handling in proxy client