protected int tightMarshalCachedObject1(
     OpenWireFormat wireFormat, DataStructure o, BooleanStream bs) throws IOException {
   if (wireFormat.isCacheEnabled()) {
     Short index = wireFormat.getMarshallCacheIndex(o);
     bs.writeBoolean(index == null);
     if (index == null) {
       int rc = wireFormat.tightMarshalNestedObject1(o, bs);
       wireFormat.addToMarshallCache(o);
       return 2 + rc;
     } else {
       return 2;
     }
   } else {
     return wireFormat.tightMarshalNestedObject1(o, bs);
   }
 }
 protected int tightMarshalNestedObject1(
     OpenWireFormat wireFormat, DataStructure o, BooleanStream bs) throws IOException {
   return wireFormat.tightMarshalNestedObject1(o, bs);
 }