System.err.println("Unable to create unique key for asset " + asset + " - type and item identification are not set.");
log.error("Unable to create unique key for asset " + asset + " - type and item identification are not set.");
    public TypeItemKey(Asset asset) {      TypeIdentificationPG tipg = asset.getTypeIdentificationPG();      if (tipg != null) {        myTypeString = tipg.getTypeIdentification();      }      if (myTypeString == null) {        myTypeString = "";      }            ItemIdentificationPG iipg = asset.getItemIdentificationPG();      if (iipg != null) {        myItemString = iipg.getItemIdentification();      }      if (myItemString == null) {        myItemString = "";      }      if ((myTypeString.equals("")) && (myItemString.equals(""))) {        System.err.println("Unable to create unique key for asset " + asset +                           " - type and item identification are not set.");      }      myHashCode = myTypeString.hashCode() + myItemString.hashCode();    }