protected MediaType getMostSpecificMediaType ( MediaType acceptType , MediaType produceType ) { produceType = produceType . copyQualityValue ( acceptType ) ; return MediaType . SPECIFICITY_COMPARATOR . compare ( acceptType , produceType ) <= 0 ? acceptType : produceType ; }
Return the more specific of the acceptable and the producible media types with the q - value of the former .