class Wsdl4jDefinition implements Wsdl11Definition {

	@Override
	public Source getSource() {
		synchronized (monitor) {
			Assert.notNull(definition, "definition must not be null");
			try {
				WSDLFactory wsdlFactory = WSDLFactory.newInstance();
				WSDLWriter wsdlWriter = wsdlFactory.newWSDLWriter();
				Document document = wsdlWriter.getDocument(definition);
				return new DOMSource(document);
			} catch (WSDLException ex) {
				throw new WsdlDefinitionException(ex.getMessage(), ex);
			}
		}
	}

	public  Wsdl4jDefinition();
	public  Wsdl4jDefinition(Definition definition);

}