@Override
    public void readSettings(WizardDescriptor settings) {
      this.settings = settings;
      // Try to preselect a folder
      FileObject preselectedFolder = Templates.getTargetFolder(settings);
      // Init values
      component.initValues(Templates.getTemplate(settings), preselectedFolder);

      // XXX hack, TemplateWizard in final setTemplateImpl() forces new wizard's title
      // this name is used in NewFileWizard to modify the title
      Object substitute = component.getClientProperty("NewFileWizard_Title"); // NOI18N
      if (substitute != null) {
        settings.putProperty("NewFileWizard_Title", substitute); // NOI18N
      }
    }
 @Override
 public void storeSettings(WizardDescriptor settings) {
   Object value = settings.getValue();
   if (WizardDescriptor.PREVIOUS_OPTION.equals(value)
       || WizardDescriptor.CANCEL_OPTION.equals(value)
       || WizardDescriptor.CLOSED_OPTION.equals(value)) {
     return;
   }
   settings.putProperty(
       AfterburnerFXTemplateWizardIterator.JAVA_DIR, Templates.getTargetFolder(settings));
   settings.putProperty(AfterburnerFXTemplateWizardIterator.NAME, component.getViewName());
   settings.putProperty(
       AfterburnerFXTemplateWizardIterator.GENERATE_BUNDLE, component.isBundleNeeded());
   settings.putProperty(
       AfterburnerFXTemplateWizardIterator.GENERATE_CONFIG, component.isConfigurationNeeded());
   settings.putProperty(
       AfterburnerFXTemplateWizardIterator.GENERATE_CSS, component.isCssNeeded());
   settings.putProperty("NewFileWizard_Title", null); // NOI18N
 }
  void read(WizardDescriptor settings) {
    //        jsfFolder.setText((String) settings.getProperty(WizardProperties.JSF_FOLDER));

    project = Templates.getProject(settings);
    FileObject targetFolder = Templates.getTargetFolder(settings);

    projectTextField.setText(ProjectUtils.getInformation(project).getDisplayName());

    SourceGroup[] sourceGroups = SourceGroups.getJavaSourceGroups(project);
    SourceGroupUISupport.connect(locationComboBox, sourceGroups);

    packageComboBox.setRenderer(PackageView.listRenderer());

    updateSourceGroupPackages();

    // set default source group and package cf. targetFolder
    //        if (targetFolder != null) {
    //            SourceGroup targetSourceGroup =
    // SourceGroupSupport.getFolderSourceGroup(sourceGroups, targetFolder);
    //            if (targetSourceGroup != null) {
    //                locationComboBox.setSelectedItem(targetSourceGroup);
    //                String targetPackage =
    // SourceGroupSupport.getPackageForFolder(targetSourceGroup, targetFolder);
    //                if (targetPackage != null) {
    //                    packageComboBoxEditor.setText(targetPackage);
    //                }
    //            }
    //            if (FileUtil.isParentOf(WebModule.getWebModule(
    //                    targetFolder).getDocumentBase(), targetFolder)) {
    //                Sources s = (Sources)
    // Templates.getProject(wizard).getLookup().lookup(Sources.class);
    //                SourceGroup[] groups = s.getSourceGroups(WebProjectConstants.TYPE_DOC_ROOT);
    //
    // jsfFolder.setText("/"+JSFConfigUtilities.getResourcePath(groups,targetFolder,'/',true));
    //            }
    //        }
  }