Refactoring jersey-client-resource