Code example for NotSerializableException

0
      } 
 
      final SerializeMethod m = getSerializer(o.getClass());
      if (m == null)
      { 
        throw new NotSerializableException(o.getClass().getName());
      } 
      out.writeByte(2);
      out.writeObject(m.getObjectClass());
      m.writeObject(o, out);
    } 
    catch (NotSerializableException nse)
    { 
      logger.warn("Unable to serialize object: " + o);
      throw nse;
    } 
  } 
 
  public synchronized boolean isSerializable(final Object o)
  { 
    if (o == null)