if ( mode != null ) { String[] values = iwc.getParameterValues("property"); if ( values != null && bundle != null ) { for ( int a = 0; a < values.length; a++ ) { bundle.removeProperty(values[a]); }
if (mode != null) { String[] values = iwc.getParameterValues("property"); if (values != null && bundle != null) { for (int a = 0; a < values.length; a++) { bundle.removeProperty(values[a]); } } }  if ((bundleIdentifier != null) && (save != null)) { String KeyName = iwc.getParameter(this.PROPERTY_KEY_NAME_PARAMETER); String KeyValue = iwc.getParameter(this.PROPERTY_VALUE_PARAMETER); if (KeyName != null && KeyName.length() > 0) bundle.setProperty(KeyName, KeyValue); bundle.storeState(); add(IWDeveloper.getText("Status: ")); add("Property set successfully and saved to files"); add(Text.getBreak()); add(Text.getBreak()); add(IWDeveloper.getText("Available Keys:")); add(getParametersTable(bundle, bundleIdentifier)); } else if ((bundleIdentifier != null) && (save == null)) { if (reload != null) { iwma.getBundle(bundleIdentifier).reloadBundle(); add(IWDeveloper.getText("Status: ")); add("Bundle reloaded from files"); add(Text.getBreak()); add(Text.getBreak()); } add(IWDeveloper.getText("Available BundleProperties:")); add(getParametersTable(bundle, bundleIdentifier)); }
  private void doBusiness(IWContext iwc){      String bundleIdentifier = iwc.getParameter(BUNDLE_PARAMETER);      String save = iwc.getParameter("Save");      String reload = iwc.getParameter("Reload");      String mode = iwc.getParameter("mode");      IWMainApplication iwma = iwc.getApplication();      IWBundle bundle = null;      if ( bundleIdentifier != null )	bundle = iwma.getBundle(bundleIdentifier);      if ( mode != null ) {	String[] values = iwc.getParameterValues("property");	if ( values != null && bundle != null ) {	  for ( int a = 0; a < values.length; a++ ) {	    bundle.removeProperty(values[a]);	  }	}      }      if((bundleIdentifier!=null)&&(save!=null)){	String KeyName = iwc.getParameter(this.PROPERTY_KEY_NAME_PARAMETER);	String KeyValue = iwc.getParameter(this.PROPERTY_VALUE_PARAMETER);	if ( KeyName != null && KeyName.length() > 0 )	  bundle.setProperty(KeyName,KeyValue);	bundle.storeState();	add(IWDeveloper.getText("Status: "));	add("Property set successfully and saved to files");	add(Text.getBreak());	add(Text.getBreak());	add(IWDeveloper.getText("Available Keys:"));	add(getParametersTable(bundle,bundleIdentifier));      }      else if( (bundleIdentifier!= null) && (save==null) ){	  if(reload!=null){	    iwma.getBundle(bundleIdentifier).reloadBundle();	    add(IWDeveloper.getText("Status: "));	    add("Bundle reloaded from files");	    add(Text.getBreak());	    add(Text.getBreak());	  }	  add(IWDeveloper.getText("Available BundleProperties:"));	 add(getParametersTable(bundle,bundleIdentifier));      }  }