boolean isPrimitive = InjectionUtils.isPrimitive(type) && !ori.isAsync(); for (MediaType mt : types) {
boolean isPrimitive = InjectionUtils.isPrimitive(type) && !ori.isAsync(); for (MediaType mt : types) {
Class<?> realReturnType = method.getReturnType(); Class<?> cls = realReturnType; if (cls == Response.class || ori.isAsync()) { cls = getActualJaxbType(cls, method, false); checkJaxbType(resource.getServiceClass(), cls, realReturnType == Response.class || ori.isAsync() ? cls : type, types, method.getAnnotations(), jaxbWriter, jaxbElement); } else {