String instId = instAsset.getUID().toString();
UID instId = instAsset.getUID();
  public static String registerCarrierInstance(      Registry toReg,       Asset instAsset,      boolean selfPropIfUnreg) {    // get id    String instId = instAsset.getUID().toString();    // check if carrier instance is registered    if (toReg.carriers.getInstance(instId) == null) {      // must register this carrier      //      // create a new carrier      ConveyanceInstance toCarrier = new ConveyanceInstance();      toCarrier.UID = instId;      // prototype id      toCarrier.prototypeUID =         registerCarrierPrototype(toReg, instAsset);      ItemIdentificationPG itemPG =         instAsset.getItemIdentificationPG();      if (itemPG != null) {        // item id == "bumper number"        toCarrier.bumperNo =           itemPG.getItemIdentification();        toCarrier.itemNomen =          itemPG.getNomenclature();      }      // home location id      // FIXME: home location needs to be a registered LocationID,      // but this information is not recorded.      toCarrier.homeLocID = null;      // owner id      // FIXME: for now use the UID's "clustername" owner field      // better fix would be for assets to have a separate PG      toCarrier.ownerID = instAsset.getUID().getOwner();      // self propelled if specified by parameter      toCarrier.selfPropelled = selfPropIfUnreg;      // register the carrier      toReg.carriers.addInstance(toCarrier);    }    // return the carrier id    return instId;  }