StringBuilder sbResources = new StringBuilder();
sbResources.append("<resources base=\"").append(getBaseURI(m, ui)).append("\">");
List<ClassResourceInfo> cris = getResourcesList(m, resource);
ResourceTypes resourceTypes =
ResourceUtils.getAllRequestResponseTypes(cris, useJaxbContextForQnames);
Set<Class<?>> allTypes = resourceTypes.getAllTypes().keySet();
JAXBContext context = useJaxbContextForQnames
? ResourceUtils.createJaxbContext(new HashSet<Class<?>>(allTypes), null, null) : null;
SchemaWriter schemaWriter = createSchemaWriter(resourceTypes, context, ui);