final int retval;
int retval = ConveyancePrototype.ASSET_TYPE_UNKNOWN;
  private static int getAssetType(Asset a) {    // could modify to use "hasXPG()" methods    final int retval;    if ((a instanceof Truck) ||        (a instanceof Trailer)) {      // trucks      retval = ConveyancePrototype.ASSET_TYPE_TRUCK;    } else if ((a instanceof Train) ||        (a instanceof RailCar)) {      // trains      retval = ConveyancePrototype.ASSET_TYPE_TRAIN;    } else if ((a instanceof CargoFixedWingAircraft) ||        (a instanceof CargoRotaryWingAircraft))  {      // planes      retval = ConveyancePrototype.ASSET_TYPE_PLANE;    } else if ((a instanceof CargoShip) ||        (a instanceof FightingShip)) {      // ships      retval = ConveyancePrototype.ASSET_TYPE_SHIP;    } else if (a instanceof Deck) {      // decks      retval = ConveyancePrototype.ASSET_TYPE_DECK;    } else if (a instanceof Facility) {      // facility (e.g. airport)      retval = ConveyancePrototype.ASSET_TYPE_FACILITY;    } else if (a instanceof Person) {      // people      retval = ConveyancePrototype.ASSET_TYPE_PERSON;    } else if (a instanceof GLMAsset) {      GLMAsset alpA = (GLMAsset)a;      if (alpA.hasPersonPG()) {        // people        retval = ConveyancePrototype.ASSET_TYPE_PERSON;      } else if (glmAssetHelper.isVehicle(alpA)) {        // misc self-propellable (e.g. tank)        retval = ConveyancePrototype.ASSET_TYPE_SELF_PROPELLABLE;      } else {        // unknown        retval = ConveyancePrototype.ASSET_TYPE_UNKNOWN;      }    } else {      // unknown      retval = ConveyancePrototype.ASSET_TYPE_UNKNOWN;    }    return retval;  }