inventoryPlugin.touchInventory(inventory); logInvPG = (LogisticsInventoryPG) inventory.searchForPropertyGroup(LogisticsInventoryPG.class);
if (inventory != null) { inventoryPlugin.touchInventory(inventory); logInvPG = (LogisticsInventoryPG) inventory.searchForPropertyGroup(LogisticsInventoryPG.class); }
  public LogisticsInventoryPG getLogisticsInventoryPG(Task wdrawTask) {	LogisticsInventoryPG logInvPG = null;	Asset asset = (Asset)wdrawTask.getDirectObject();	Inventory inventory = inventoryPlugin.findOrMakeInventory(asset);	inventoryPlugin.touchInventory(inventory);	logInvPG = (LogisticsInventoryPG)	  inventory.searchForPropertyGroup(LogisticsInventoryPG.class);	return logInvPG;  }