declaration.setJavaType(adaptedType);
declaration.setAdaptedJavaType(type);
returnType = adaptedType;
}
if (helper.isAnnotationPresent(next, XmlMimeType.class)) {
XmlMimeType mimeType = (XmlMimeType)helper.getAnnotation(next, XmlMimeType.class);
declaration.setXmlMimeType(mimeType.value());
}
if (helper.isAnnotationPresent(next, XmlAttachmentRef.class)) {
declaration.setXmlAttachmentRef(true);
}
HashMap<QName, ElementDeclaration> elements = getElementDeclarationsForScope(scopeClass.getName());