/**
  * Returns configurations done on WATagPage.
  *
  * @return Map<String, String>
  */
 @SuppressWarnings("static-access")
 private Map<String, String> getDeployPageValues() {
   Map<String, String> values = new HashMap<String, String>();
   // JDK
   values.put("jdkChecked", Boolean.valueOf(tabPg.isJdkChecked()).toString());
   values.put("jdkLoc", tabPg.getJdkLoc());
   // JDK download group
   values.put("jdkDwnldChecked", Boolean.valueOf(tabPg.isJdkDownloadChecked()).toString());
   values.put("jdkAutoDwnldChecked", Boolean.valueOf(tabPg.isJdkAutoUploadChecked()).toString());
   values.put("jdkThrdPartyChecked", Boolean.valueOf(tabPg.isThirdPartyJdkChecked()).toString());
   values.put("jdkName", tabPg.getJdkName());
   values.put("jdkUrl", tabPg.getJdkUrl());
   values.put("jdkKey", tabPg.getJdkKey());
   values.put("javaHome", tabPg.getJavaHome());
   // Server
   values.put("serChecked", Boolean.valueOf(tabPg.isSrvChecked()).toString());
   values.put("servername", JdkSrvConfig.getServerName());
   values.put("serLoc", tabPg.getServerLoc());
   values.put("tempFile", WAEclipseHelper.getTemplateFile(Messages.cmpntFile));
   // Server download group
   values.put("srvDwnldChecked", Boolean.valueOf(JdkSrvConfig.isSrvDownloadChecked()).toString());
   values.put(
       "srvAutoDwnldChecked", Boolean.valueOf(JdkSrvConfig.isSrvAutoUploadChecked()).toString());
   values.put("srvThrdPartyChecked", Boolean.valueOf(tabPg.isThirdPartySrvChecked()).toString());
   values.put("srvThrdPartyName", tabPg.getThirdPartyServerName());
   values.put("srvThrdAltSrc", JdkSrvConfig.getServerCloudAltSource());
   values.put("srvUrl", tabPg.getSrvUrl());
   values.put("srvKey", tabPg.getSrvKey());
   values.put("srvHome", tabPg.getSrvHomeDir());
   return values;
 }
 /**
  * This method gets called when wizard's finish button is clicked.
  *
  * @return True, if project gets created successfully; else false.
  */
 @Override
 public boolean performFinish() {
   final String projName = waProjWizPage.getTextProjName();
   final String projLocation = waProjWizPage.getTextLocation();
   final boolean isDefault = waProjWizPage.isDefaultLocation();
   final WorkingSetGroup workingSetGroup = waProjWizPage.getWorkingSetGroup();
   final IWorkingSet[] selWorkingSets = workingSetGroup.getSelectedWorkingSets();
   final IWorkingSetManager workingSetManager = PlatformUI.getWorkbench().getWorkingSetManager();
   final Map<String, String> depParams = getDeployPageValues();
   final Map<String, Boolean> keyFtr = getKeyFtrPageValues();
   final IProject proj = getSelectProject();
   boolean retVal = true;
   IRunnableWithProgress runnable =
       new IRunnableWithProgress() {
         public void run(IProgressMonitor monitor) throws InvocationTargetException {
           try {
             doFinish(
                 projName,
                 projLocation,
                 isDefault,
                 selWorkingSets,
                 workingSetManager,
                 depParams,
                 keyFtr,
                 proj);
           } finally {
             monitor.done();
           }
         }
       };
   try {
     /*
      * Check if third party JDK and server is selected
      * then license is accepted or not.
      */
     boolean tempAccepted = true;
     if (WATabPage.isThirdPartyJdkChecked() && !WATabPage.isAccepted()) {
       tempAccepted = JdkSrvConfig.createAccLicenseAggDlg(getShell(), true);
     }
     if (WATabPage.isThirdPartySrvChecked() && !WATabPage.isServerAccepted()) {
       tempAccepted = JdkSrvConfig.createAccLicenseAggDlg(getShell(), false);
     }
     if (tempAccepted) {
       getContainer().run(true, false, runnable);
     } else {
       return false;
     }
   } catch (InterruptedException e) {
     PluginUtil.displayErrorDialog(this.getShell(), Messages.pWizErrTitle, Messages.pWizErrMsg);
     retVal = false;
   } catch (InvocationTargetException e) {
     PluginUtil.displayErrorDialogAndLog(
         this.getShell(), Messages.pWizErrTitle, Messages.pWizErrMsg, e);
     retVal = false;
   }
   // re-initializing context menu to default option : false
   Activator.getDefault().setContextMenu(false);
   return retVal;
 }