private PluginContentWsdlGenerationOperation getWsdlGenerationOperation( IProgressMonitor monitor, String pathToWsdl, boolean isConsumer) throws InvocationTargetException, InterruptedException { monitor.setTaskName("PluginContentWsdlGenerationOperation"); IFolder srcFolder = getSourceFolder(monitor); PluginContentWsdlGenerationOperation generationOperation = new PluginContentWsdlGenerationOperation(pathToWsdl, project, srcFolder, isConsumer); generationOperation.run(monitor); List<String> warnings = generationOperation.getWarnings(); if (!warnings.isEmpty()) { StringBuilder message = new StringBuilder(); for (String warning : warnings) { message.append(warning).append("\n"); } ErrorDialog.openError( page.getShell(), null, null, new Status(IStatus.WARNING, Activator.getDefault().getPluginId(), message.toString())); } return generationOperation; }