out.writeProperty(BasicUniverse.ELEMENT_COUNT, factory2.getElementCount());
out.writeProperty(PersistConst.MAX, factory2.getMax());
out.writeProperty(PersistConst.MIN, factory2.getMin());
out.writeProperty(PersistConst.SIZE, factory2.size());
} else {
throw new CellularAutomataError("Unknown cell factory: " + className);
}
out.addSubSection("UNIVERSE");
for(int row = 0; row<universe.getRows(); row++) {
for(int col = 0; col<universe.getColumns(); col++) {
UniverseCell cell = universe.get(row, col);