ObjectMarshallingStrategy strategy = context.objectMarshallingStrategyStore.getStrategyObject( object );
String strategyClassName = strategy.getClass().getName();
stream.writeInt(-2); // backwards compatibility
stream.writeUTF(strategyClassName);
if ( strategy.accept( object ) ) {
strategy.write( stream,
object );
}
}