Refer to https://java.net/jira/browse/JERSEY-2665