title: Java Serialization Comparator
body: <p>Is it possible to serialize a TreeMap with a comparator??</p>
  
  <p>I've tested and it serializes well a treemap without comparator, when you add the comparator, it throws an exception.</p>
  
  <p>If I declare comparator as transient, it still doesn't work. It only works if I make every tree map transient but it doesnt serialize the trees in that case.</p>