throw new IOException("Key in Map must be Serializable: " + me.getKey());
throw new IOException("Key in map must be Serializable: " + me.getKey());
   public static void writeMap(ObjectOutput out, Map map, boolean stringKeys) throws IOException   {            if (map.isEmpty())      {         out.writeByte(NULL);      }      else      {               out.writeByte(MAP);         Set entrySet = map.entrySet();         out.writeInt(entrySet.size());         for (Iterator it = entrySet.iterator(); it.hasNext(); )         {            Map.Entry me = (Map.Entry)it.next();                        //Write the key            if (stringKeys)            {               out.writeUTF((String)me.getKey());            }            else            {               if (!(me.getKey() instanceof Serializable))               {                  throw new IOException("Key in Map must be Serializable: " + me.getKey());               }               internalWriteObject(out, (Serializable)me.getKey(), false);            }                        //Write the value            if (!(me.getValue() instanceof Serializable))            {               throw new IOException("Value in Map must be Serializable: " + me.getValue());            }            internalWriteObject(out, (Serializable)me.getValue(), false);                     }      }   }