ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
try
{
XmlObject obj = XmlObject.Factory.parse(classLoader.getResourceAsStream("schemaorg_apache_xmlbeans/src/" + name));
schema = builder.build(new FragmentStreamReader(obj.newXMLStreamReader())).getRootElement();
String ns = xbeanType.getSchemaType().getNamespaceURI();
String expr = "//xsd:schema[@targetNamespace='" + ns + "']";
List nodes = getMatches(schema, expr);