code: public void writeObject (ObjectOutputStream out)
          throws IOException
      {
          int ecount = size();
          out.writeInt(ecount);
          for (Map.Entry<K, V> entry : entrySet()) {
              out.writeObject(entry.getKey());
              out.writeObject(entry.getValue());
          }
      }
docs: Writes our custom streamable fields.