request.setServletPath("/service.xsd");
request.setPathInfo(null);
request.setRequestURI("/context/service.xsd");
Resource importing = new ClassPathResource("importing-input.xsd", getClass());
SimpleXsdSchema schema = new SimpleXsdSchema(importing);
schema.afterPropertiesSet();
adapter.handle(request, response, schema);
InputStream inputStream = new ByteArrayInputStream(response.getContentAsByteArray());
DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();