private void checkMediaTypes(String consumeMediaTypes,
String produceMediaTypes) {
if (consumeMediaTypes != null) {
consumeMimes = JAXRSUtils.sortMediaTypes(consumeMediaTypes);
} else {
Consumes cm =
(Consumes)AnnotationUtils.getMethodAnnotation(annotatedMethod, Consumes.class);
if (cm != null) {
consumeMimes = JAXRSUtils.sortMediaTypes(JAXRSUtils.getMediaTypes(cm.value()));
} else if (classResourceInfo != null) {
consumeMimes = JAXRSUtils.sortMediaTypes(classResourceInfo.getConsumeMime());
}
}
if (produceMediaTypes != null) {