@Override public void afterPropertiesSet() throws ParserConfigurationException, IOException, SAXException { Assert.notNull(wsdl, "wsdl file resource is required"); Assert.isTrue(wsdl.exists(), "wsdl file resource '" + wsdl + " does not exist"); try { loadSchemas(); } catch (WSDLException e) { throw new BeanCreationException("Failed to load schema types from WSDL file", e); } catch (TransformerException e) { throw new BeanCreationException("Failed to load schema types from WSDL file", e); } catch (TransformerFactoryConfigurationError e) { throw new BeanCreationException("Failed to load schema types from WSDL file", e); } Assert.isTrue(!schemas.isEmpty(), "no schema types found in wsdl file resource"); super.afterPropertiesSet(); }