private String getAssetType(Inventory inventory) { InventoryPG invpg = (InventoryPG)inventory.getInventoryPG(); if (invpg == null ) return null; Asset a = invpg.getResource(); if (a == null) return null; SupplyClassPG pg = (SupplyClassPG)a.searchForPropertyGroup(SupplyClassPG.class); return pg.getSupplyType(); }
private String getAssetType(Inventory inventory, LogisticsInventoryPG invpg) { Asset a = invpg.getResource(); if (a == null) return null; SupplyClassPG pg = (SupplyClassPG) a.searchForPropertyGroup(SupplyClassPG.class); return pg.getSupplyType(); }
    private String getAssetType(Inventory inventory) {      InventoryPG invpg = (InventoryPG)inventory.getInventoryPG();      if (invpg == null ) return null;      Asset a = invpg.getResource();      if (a == null) return null;      SupplyClassPG pg = (SupplyClassPG)a.searchForPropertyGroup(SupplyClassPG.class);      return pg.getSupplyType();    }