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