Added since jersey client was being a bit dodgy.