public void save(OutputStream os, Object obj) {
EncogWriteHelper out = new EncogWriteHelper(os);
NEATPopulation pop = (NEATPopulation) obj;
out.addSection("NEAT-POPULATION");
out.addSubSection("CONFIG");
out.writeProperty(PersistConst.SNAPSHOT, pop.isSnapshot());
out.writeProperty(NEATPopulation.PROPERTY_OUTPUT_ACTIVATION, pop.getOutputActivationFunction());
out.writeProperty(NEATPopulation.PROPERTY_NEAT_ACTIVATION, pop.getNeatActivationFunction());
out.writeProperty(PersistConst.INPUT_COUNT, pop.getInputCount());
out.writeProperty(PersistConst.OUTPUT_COUNT, pop.getOutputCount());
out.writeProperty(NEATPopulation.PROPERTY_OLD_AGE_PENALTY,