Map.Entry entry = (Map.Entry) iterator.next();
System.out.println("Name " + entry.getKey());
File f = new File("n:/temp/foo.ajstate");
try {
AjState state = (AjState) entry.getValue();
CompressingDataOutputStream dos = new CompressingDataOutputStream(new FileOutputStream(f));
state.write(dos);
dos.close();
} catch (FileNotFoundException e) {
throw new RuntimeException(e);
} catch (IOException e) {
throw new RuntimeException(e);
}