StringBuilder sbResources = new StringBuilder();
sbResources.append("<resources base=\"").append(baseURI).append("\">");
MessageBodyWriter<?> jaxbWriter = (m != null && useJaxbContextForQnames)
? ProviderFactory.getInstance(m).getRegisteredJaxbWriter() : null;
ResourceTypes resourceTypes = ResourceUtils.getAllRequestResponseTypes(cris,
useJaxbContextForQnames,
jaxbWriter);
checkXmlSeeAlso(resourceTypes);
Set<Class<?>> allTypes = resourceTypes.getAllTypes().keySet();
JAXBContext jaxbContext = useJaxbContextForQnames ? ResourceUtils
.createJaxbContext(new HashSet<Class<?>>(allTypes), null, null) : null;
SchemaWriter schemaWriter = createSchemaWriter(resourceTypes, jaxbContext, ui);