public String findBaseType(String name) throws XPathExpressionException {
        return (String) xPath.compile(
                "/xs:schema/xs:complexType[@name='" + name + "']//xs:extension/@base")
                .evaluate(document, XPathConstants.STRING);
    }
@Test
    public void testFindBaseType() throws Exception {
        Document document = XmlHelper.buildNamespaceAwareDocument(
                ResourceUtils.getResourceAsFile("xmls/complex_type_w_parent.xml"));
        XPath xPath = XmlHelper.buildXPath(new CamelSpringNamespace());
        domFinder = new DomFinder(document, xPath);

        String baseTypeName = domFinder.findBaseType("keyManagersParametersFactoryBean");

        assertEquals("tns:abstractKeyManagersParametersFactoryBean", baseTypeName);
    }