WaitLock waitLock = waitService.startWait();
if (wsdl.isRemote()) {
WsdlUtils.uploadRemoteWsdl(wsdl.getLocator(), new UploadRemoteWsdlCallback(waitLock));
} else {
IntegrationServer server = IntegrationServer.getInstance();
WsdlProvider serverInterface = server.getServerCall(WsdlProvider.class);
WsdlUploader uploader = new WsdlUploader(serverInterface, project.getFileStore());
uploader.upload(new File(wsdl.getLocator()), new UploadLocalWsdlCallback(waitLock));
}
}