private void writeObject(ObjectOutput out,Object obj) throws IOException {
  out.writeObject(obj == null || !(obj instanceof Serializable) ? NULL_OBJECT : obj);
}

private void writeObject ( ObjectOutput out , Object obj ) throws IOException { out . writeObject ( obj == null || ! ( obj instanceof Serializable ) ? NULL_OBJECT : obj ) ; }
helper method used to serialize class members
