Type genericType,
ResourceTypes types,
Annotation[] anns) {
if (InjectionUtils.isSupportedCollectionOrArray(type)) {
type = InjectionUtils.getActualType(genericType);
XMLName name = AnnotationUtils.getAnnotation(anns, XMLName.class);
if (name != null) {
types.getCollectionMap().put(type, JAXRSUtils.convertStringToQName(name.value()));
}
}
JAXBElementProvider<?> provider = new JAXBElementProvider<Object>();
if (type != null
&& !InjectionUtils.isPrimitive(type)