public void retractTuple(final ReteTuple leftTuple,
final PropagationContext context,
final InternalWorkingMemory workingMemory) {
final BetaMemory memory = (BetaMemory) workingMemory.getNodeMemory( this );
memory.getTupleMemory().remove( leftTuple );
<BUG>final InternalFactHandle handle = (InternalFactHandle) memory.getCreatedHandles().remove( leftTuple );
if ( handle != null ) {
this.sink.propagateRetractTuple( leftTuple,</BUG>
handle,
context,

public void retractTuple(final ReteTuple leftTuple,
final PropagationContext context,
final InternalWorkingMemory workingMemory) {
final BetaMemory memory = (BetaMemory) workingMemory.getNodeMemory( this );
memory.getTupleMemory().remove( leftTuple );
CollectResult result = (CollectResult) memory.getCreatedHandles().remove( leftTuple );
final InternalFactHandle handle = result.handle;
if ( result.propagated ) {
this.sink.propagateRetractTuple( leftTuple,
handle,
context,
