while ((pkgInfo = eli.next()) != null) {
String packageSeqId = pkgInfo.getString("shipmentPackageSeqId");
String shipmentId = pkgInfo.getString("shipmentId");
// locate the shipment package
GenericValue shipmentPackage = delegator.findByPrimaryKey("ShipmentPackage",
UtilMisc.toMap("shipmentId", shipmentId, "shipmentPackageSeqId", packageSeqId));
if (shipmentPackage != null) {
if ("00001".equals(packageSeqId)) {
// only need to do this for the first package