if (cccArray[0] != pgCCC[0])
if (cccArray[0] != pgCCC[0]) {
  protected void addToDimension (String ccc, 				 double quantity,				 PhysicalPG itemPhysicalPG,				 CargoCatCodeDimensionPG cccdPG) {    NewPhysicalPG whichPG = (NewPhysicalPG) cccdPG.getDimensions();    NewCargoCatCodeDimensionPG whichCCCDimPG = (NewCargoCatCodeDimensionPG) cccdPG;    if (whichPG == null) {      logger.error ("Could not set physical PG?");    }    String pgCCCString = whichCCCDimPG.getCargoCatCode();    if (pgCCCString == null) // we've never set the cargo cat code      whichCCCDimPG.setCargoCatCode(ccc);    else if (!pgCCCString.equals(ccc)) {      char [] pgCCC = pgCCCString.toCharArray();      char [] newCCC = new char [3];      char [] cccArray = ccc.toCharArray ();      if (isDebugEnabled())	debug (".addToDimension old " + new String(pgCCC) + " additional ccc " + ccc);      if (cccArray[0] != pgCCC[0])	newCCC[0]='X';      else 	newCCC[0]=pgCCC[0];      if (cccArray[1] != pgCCC[1])	newCCC[1]='X';      else 	newCCC[1]=pgCCC[1];      if (cccArray[2] != pgCCC[2])	newCCC[2]='X';      else 	newCCC[2]=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));    if (isDebugEnabled())      debug (".addToDimension final dim for " + ccc + " - " + 	     whichPG.getFootprintArea().getSquareMeters() + " m^2" + 	     whichPG.getVolume().getCubicMeters() + " m^3 " + 	     whichPG.getMass().getShortTons() + " short tons.");  }