Asset a = inventory.getScheduledContentPG().getAsset(); String type = a.getClass().getName(); type = type.substring(type.lastIndexOf('.')+1); return type;
InventoryPG invpg = (InventoryPG)inventory.searchForPropertyGroup(InventoryPG.class); Asset a = invpg.getResource(); SupplyClassPG pg = (SupplyClassPG)a.searchForPropertyGroup(SupplyClassPG.class); return pg.getSupplyType();
    public String getAssetType(Inventory inventory) {		Asset a = inventory.getScheduledContentPG().getAsset();	String type = a.getClass().getName();	type = type.substring(type.lastIndexOf('.')+1);	return type;    }