add jersey 2 support