if ( element instanceof InternalFactHandle ) {
InternalFactHandle handle = (InternalFactHandle) element;
PropagationContext pContext = pctxFactory.createPropagationContext(wm.getNextPropagationIdCounter(), PropagationContext.MODIFICATION,
null, null, handle);
ModifyPreviousTuples modifyPreviousTuples = new ModifyPreviousTuples( handle.getFirstLeftTuple(),
handle.getFirstRightTuple(),
new EntryPointNode() );
handle.clearRightTuples();
handle.clearLeftTuples();
((ObjectSink) sink).modifyObject( handle,
modifyPreviousTuples,
pContext,
wm );
modifyPreviousTuples.retractTuples( pContext,
wm );
pContext.evaluateActionQueue( wm );
} else {
List<InternalFactHandle> tlist = (List<InternalFactHandle>) element;
String id = getTupleId( tlist );