private void writeObject(ObjectOutputStream oos) throws IOException {
  if (!equals(beanContextChildPeer) && !(beanContextChildPeer instanceof Serializable))   throw new IOException("BeanContextChildSupport beanContextChildPeer not Serializable");
 else   oos.defaultWriteObject();
}

private void writeObject ( ObjectOutputStream oos ) throws IOException { if ( ! equals ( beanContextChildPeer ) && ! ( beanContextChildPeer instanceof Serializable ) ) throw new IOException ( "BeanContextChildSupport beanContextChildPeer not Serializable" ) ; else oos . defaultWriteObject ( ) ; }
write the persistence state of the object .
