//So at this point either we got wsdl definition from ServiceDescription (which means we are running this code
//on client side) or we got it from the @WebService annotation (which means we are running this code on server side)
if (wsdlDefinition != null) {
SchemaReader sr = new SchemaReaderImpl();
try {
Set<String> pkgSet = sr.readPackagesFromSchema(wsdlDefinition);
set.addAll(pkgSet);
} catch (SchemaReaderException e) {
throw ExceptionFactory.makeWebServiceException(e);
}
}