}
case NodeTypeEnums.CollectNode : {
// context.out.println( "CollectNode" );
// collect nodes generate new facts on-demand and need special procedures when serializing to persistent storage
CollectMemory memory = (CollectMemory) context.wm.getNodeMemory( (BetaNode) sink );
CollectContext colctx = (CollectContext) memory.betaMemory.getCreatedHandles().get( leftTuple );
// first we serialize the generated fact handle
writeFactHandle( context,
stream,
context.objectMarshallingStrategyStore,
colctx.resultTuple.getFactHandle() );