if(invXML != null) {
if((invXML != null) && (!(invXML.trim().equals("")))) {
  public void selectionChanged(InventorySelectionEvent e) {    Vector assetNames = null;    if (e.getID() == InventorySelectionEvent.ORG_SELECT) {      Vector newOrgs = dataSource.getOrgNames(e.getOrg(),e.getOrgPopMethod());      if(newOrgs != null) {	selector.reinitializeOrgBox(newOrgs);      }      if(!(e.getOrg().startsWith("."))) {	assetNames = dataSource.getAssetNames(e.getOrg(),					      e.getSupplyType());      }      if(assetNames == null) {	assetNames = new Vector();      }      selector.setAssetNames(assetNames);    } else if (e.getID() == InventorySelectionEvent.ORG_POP_SELECT) {	Vector newOrgs = dataSource.getOrgNames(e.getOrg(),e.getOrgPopMethod());	if(newOrgs != null) {	  selector.reinitializeOrgBox(newOrgs);	}	/*** MWD remove - badly place functionality	if(!(selector.getSelectedOrg().equals(e.getOrg()))) {	  if(!(e.getOrg().startsWith("."))) {	    assetNames = dataSource.getAssetNames(e.getSelectedOrg(),						  e.getSupplyType());	  }	  if(assetNames == null) {	    assetNames = new Vector();	  }	  selector.setAssetNames(assetNames);	}	***/    } else if (e.getID() == InventorySelectionEvent.INVENTORY_SELECT) {      String invXML = dataSource.getInventoryData(e.getOrg(),                                                  e.getAssetName());      if(invXML != null) {	  editPane.setText(invXML);	  inventory = parser.parseString(invXML);	  multiChart.setData(inventory);      }    }  }