}
//the wsdl definition is present. then we can ditectly utilize the wsdl writer.
if (wsdlWrapper.getDefinition() != null) {
try {
WSDLWriter writer = WSDLFactory.newInstance().newWSDLWriter();
writer.writeWSDL(wsdlWrapper.getDefinition(), out);
} catch (WSDLException e) {
throw new WriterException(e);
}
//wsdl description is present but not the definition. So start writing
} else if (wsdlWrapper.getDescription() != null) {