ScheduledContentPG scp = inventory.getScheduledContentPG(); Asset proto = scp.getAsset(); if (proto == null) { printError("getInventoryType failed to get asset for "+inventory); return ""; } return proto.getTypeIdentificationPG().getTypeIdentification();
ScheduledContentPG scp = inventory.getScheduledContentPG(); Asset proto = scp.getAsset(); if (proto == null) { if (logger.isErrorEnabled()) { logger.error("getInventoryType failed to get asset for " + inventory); } return "";
    public String getInventoryType(Inventory inventory) {	ScheduledContentPG scp = inventory.getScheduledContentPG();	Asset proto = scp.getAsset();	if (proto == null) {	    printError("getInventoryType failed to get asset for "+inventory);	    return "";	}	return proto.getTypeIdentificationPG().getTypeIdentification();    }