Synced with the Jersey code base where this feature is integrated starting 2.5.