protected void addTagToModel( AcCn46ActualConveyanceModel model, AcItem i, AcUpuTag upuTag, boolean useUld) { AcConsignment c = null; AcConsignmentFlight cf = null; String uld = ""; if (i.hasConsignmentId()) { c = getConsignment(i.getConsignmentId()); cf = getLastConsignmentFlightLeg(i.getConsignmentId()); } if (useUld && i.hasParentNestId()) { AcNest nest = getNest(i.getParentNestId()); if (nest.isUld()) uld = nest.getSerialNumber(); } model.addTag(upuTag, c, cf, uld); }