public final void writeChildren(ObjectOutputStream oos) throws IOException {
        int serializable = 0;
        Set<Map.Entry<Object, BCChild>> bcChildren = _children.entrySet();
        for (Map.Entry<Object, BCChild> entry : bcChildren) {
            if (entry.getValue().isSerializable()) {
                serializable++;
            }
        }

        oos.writeInt(serializable);
        if (serializable > 0) {
            for (Map.Entry<Object, BCChild> bc : bcChildren) {
                if (bc.getValue().isSerializable()) {
                    oos.writeObject(bc.getKey());
                }
            }
        }
    }
public final void writeChildren ( ObjectOutputStream oos ) throws IOException { int serializable = 0 ; Set < Map . Entry < Object , BCChild > > bcChildren = _children . entrySet ( ) ; for ( Map . Entry < Object , BCChild > entry : bcChildren ) { if ( entry . getValue ( ) . isSerializable ( ) ) { serializable ++ ; } } oos . writeInt ( serializable ) ; if ( serializable > 0 ) { for ( Map . Entry < Object , BCChild > bc : bcChildren ) { if ( bc . getValue ( ) . isSerializable ( ) ) { oos . writeObject ( bc . getKey ( ) ) ; } } } }
Necessary for the case of this bean context having a peer.  The specification
states that a bean context which has a peer should not serialize its children,
this hook is necessary to allow the peer to serialize children.

@param oos ObjectOutputStream
@throws IOException