private void writeObject(final ObjectOutputStream out) throws IOException {
  out.defaultWriteObject();
  doWriteObject(out);
}

private void writeObject ( final ObjectOutputStream out ) throws IOException { out . defaultWriteObject ( ) ; doWriteObject ( out ) ; }
write the map out using a custom routine .
