s.setString(++col,part.name+"-item-"+nomen+"-"+i);
s.setString(++col,receiver +":"+part.name+"-item-"+nomen+"-"+i);
  protected boolean updateManifest(PreparedStatement s, Instance part){    try {      int i = 0;      Iterator typeIter = part.typeIdentifications.iterator();      Iterator weightsIter = part.weights.iterator();      for (Iterator nomenIter = part.nomenclatures.iterator (); nomenIter.hasNext ();) {	i++;	String nomen = (String) nomenIter.next ();	String type  = (String) typeIter.next ();	double weight = ((Mass) weightsIter.next ()).getGrams();	int col = 0;	s.setString(++col,part.UID + "-item-" + i);	s.setString(++col,part.UID.toString());	s.setString(++col,part.name+"-item-"+nomen+"-"+i);	s.setString(++col,type);	s.setString(++col,nomen+" "+type);	s.setDouble(++col,weight);	s.addBatch ();      }    }catch(SQLException e){      if(!dbConfig.getUniqueViolatedErrorCode().equals(e.getSQLState())){	haltForError(Logger.DB_WRITE,"Could not add batch to table("+		     getTableName(MANIFEST_TABLE)+")"+		     "["+e.getSQLState()+"]",e);	return false;      }    }    return true;  }