newCCC[0]=pgCCC[1];
newCCC[1]=pgCCC[1];
  protected void addToDimension (String ccc, 				 double quantity,				 PhysicalPG itemPhysicalPG,				 CargoCatCodeDimensionPG cccdBulkPG,				 CargoCatCodeDimensionPG cccdOversizePG,				 CargoCatCodeDimensionPG cccdOutsizePG,				 CargoCatCodeDimensionPG cccdNonAirPG) {    NewPhysicalPG whichPG = null;    NewCargoCatCodeDimensionPG whichCCCDimPG = null;    NewPhysicalPG bulkPG  = (NewPhysicalPG) cccdBulkPG.getDimensions();    NewPhysicalPG oversizePG = (NewPhysicalPG) cccdOversizePG.getDimensions();    NewPhysicalPG outsizePG  = (NewPhysicalPG) cccdOutsizePG.getDimensions();    NewPhysicalPG nonAirPG   = (NewPhysicalPG) cccdNonAirPG.getDimensions();    if (bulkPG == null) {      logger.error ("bulk Physical PG is null???");    }        switch (ccc.charAt(1)) {    case '0': // non-air      whichPG = (NewPhysicalPG) nonAirPG;      whichCCCDimPG = (NewCargoCatCodeDimensionPG) cccdNonAirPG;      break;    case '1': // outsized      whichPG = (NewPhysicalPG) outsizePG;      whichCCCDimPG = (NewCargoCatCodeDimensionPG) cccdOutsizePG;      break;    case '2': // oversized      whichPG = (NewPhysicalPG) oversizePG;      whichCCCDimPG = (NewCargoCatCodeDimensionPG) cccdOversizePG;      break;    case '3': // bulk      whichPG = (NewPhysicalPG) bulkPG;      whichCCCDimPG = (NewCargoCatCodeDimensionPG) cccdBulkPG;      break;    default:      logger.warn ("Could not determine transportation category from cargo cat code " + ccc);      break;    }    if (whichPG == null) {      logger.error ("Could not set physical PG?");    }    String pgCCCString = whichCCCDimPG.getCargoCatCode();    if (pgCCCString == null)      whichCCCDimPG.setCargoCatCode(ccc);    else if (!pgCCCString.equals(ccc)) {      char [] pgCCC = pgCCCString.toCharArray();      char [] newCCC = new char [3];      char [] cccArray = ccc.toCharArray ();      if (cccArray[0] != pgCCC[0])	newCCC[0]='X';      else 	newCCC[0]=pgCCC[0];      if (cccArray[1] != pgCCC[1])	newCCC[0]='X';      else 	newCCC[0]=pgCCC[1];      if (cccArray[2] != pgCCC[2])	newCCC[0]='X';      else 	newCCC[0]=pgCCC[2];      whichCCCDimPG.setCargoCatCode(new String(newCCC));    }    double area = 0.0d;    double volume = 0.0d;    double mass = 0.0d;    if (whichPG.getFootprintArea () != null) {      area   = whichPG.getFootprintArea().getSquareMeters ();      volume = whichPG.getVolume().getCubicMeters ();      mass   = whichPG.getMass().getKilograms ();    }     whichPG.setFootprintArea (new Area (area +					itemPhysicalPG.getFootprintArea().getSquareMeters() * quantity, Area.SQUARE_METERS));    whichPG.setVolume (new Volume (volume +				   itemPhysicalPG.getVolume().getCubicMeters() * quantity, Volume.CUBIC_METERS));    whichPG.setMass (new Mass (mass +			       itemPhysicalPG.getMass().getKilograms() * quantity, Mass.KILOGRAMS));  }