if (o instanceof Inventory) { LogisticsInventoryPG logInvpg = (LogisticsInventoryPG) ((Inventory) o).searchForPropertyGroup(LogisticsInventoryPG.class); if (logInvpg != null) { String type = getAssetType((Inventory)o); if (supplyType.equals(type)) { return true; } } } return false; }
if (o instanceof Inventory) { Inventory inv = (Inventory) o; LogisticsInventoryPG logInvpg = (LogisticsInventoryPG) inv.searchForPropertyGroup(LogisticsInventoryPG.class); if (logInvpg != null) { String type = getAssetType(inv, logInvpg); if (supplyType.equals(type)) { return true; } } } return false; }
    public boolean execute(Object o) {      if (o instanceof Inventory) {	LogisticsInventoryPG logInvpg = 	  (LogisticsInventoryPG) ((Inventory) o).searchForPropertyGroup(LogisticsInventoryPG.class);	if (logInvpg != null) {	  String type = getAssetType((Inventory)o);	  if (supplyType.equals(type)) {	    return true;    	  }	}      }      return false;    }