private CDROutputStream createContextStream()
{
CDROutputStream out = new CDROutputStream( (org.omg.CORBA.ORB) null );
//write the length of the service context array.
out.write_ulong( contexts.size() );
for( int i = 0; i < contexts.size(); i++ )
{
ServiceContextHelper.write( out,
(ServiceContext) contexts.elementAt( i ));