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;
 }
  @Override
  protected void generateFiles(IProgressMonitor monitor) throws CoreException {
    super.generateFiles(monitor);

    String pathToWsdl = page.getPathToWSDL();
    try {
      PluginContentWsdlGenerationOperation generationOperation =
          getWsdlGenerationOperation(monitor, pathToWsdl, isConsumer());

      String serviceURL = "http://localhost:8197/" + generationOperation.getServiceName() + "/";
      if (generationOperation.getServiceUrl() != null) {
        serviceURL = generationOperation.getServiceUrl();
      }

      generateAdditionalArtifacts(monitor, generationOperation, serviceURL);
    } catch (InvocationTargetException e) {
      Throwable cause = e.getCause();
      IStatus status = ErrorUtil.getErrorStatus(getGenerationErrorMessage(), cause);
      throw new CoreException(status);
    } catch (InterruptedException e) {
      // do nothing
    }
  }