Buggy code:
public class RuleSubset extends DefaultOperationBuilder implements CompositeOperation , Parameterized { private static Logger log = Logger . getLogger ( RuleSubset . class ) ; private final Configuration config ; private RuleSubset ( Configuration config ) { } public static RuleSubset evaluate ( Configuration config ) { } @ Override public void perform ( Rewrite rewrite , EvaluationContext context ) { if ( ! ( rewrite instanceof GraphRewrite ) ) throw new IllegalArgumentException ( "Rewrite<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>an<seq2seq4repair_space>instanceof<seq2seq4repair_space>GraphRewrite" ) ; GraphRewrite event = ( ( GraphRewrite ) ( rewrite ) ) ; List < Rule > rules = config . getRules ( ) ; final RuleSubset . EvaluationContextImpl subContext = new RuleSubset . EvaluationContextImpl ( ) ; for ( int i = 0 ; i < ( rules . size ( ) ) ; i ++ ) { Rule rule = rules . get ( i ) ; try { subContext . clear ( ) ; subContext . put ( ParameterStore . class , context . get ( ParameterStore . class ) ) ; ParameterValueStore values = ( ( ParameterValueStore ) ( context . get ( ParameterValueStore . class ) ) ) ; subContext . put ( ParameterValueStore . class , values ) ; subContext . setState ( EVALUATING ) ; subContext . put ( Rule . class , rule ) ; event . selectionPush ( ) ; try { if ( ! ( rule . evaluate ( event , subContext ) ) ) continue ; if ( ! ( handleBindings ( event , subContext , values ) ) ) continue ; subContext . setState ( PERFORMING ) ; RuleSubset . log . debug ( ( ( "Rule<seq2seq4repair_space>[" + rule ) + "]<seq2seq4repair_space>matched<seq2seq4repair_space>and<seq2seq4repair_space>will<seq2seq4repair_space>be<seq2seq4repair_space>performed." ) ) ; List < Operation > preOperations = subContext . getPreOperations ( ) ; for ( Operation preOperation : preOperations ) { preOperation . perform ( event , subContext ) ; } if ( event . getFlow ( ) . isHandled ( ) ) break ; rule . perform ( event , subContext ) ; if ( event . getFlow ( ) . isHandled ( ) ) break ; List < Operation > postOperations = subContext . getPostOperations ( ) ; for ( Operation postOperation : postOperations ) { postOperation . perform ( event , subContext ) ; } if ( event . getFlow ( ) . isHandled ( ) ) break ; } finally { boolean autocommit = true ; if ( rule instanceof Context ) { Context ruleContext = ( ( Context ) ( rule ) ) ; if ( ruleContext . containsKey ( AUTO_COMMIT ) ) { autocommit = ( ( Boolean ) ( ruleContext . get ( AUTO_COMMIT ) ) ) ; } } if ( autocommit ) { <START_BUG> event . getGraphContext ( ) . getGraph ( ) . commit ( ) ; <END_BUG> } event . selectionPop ( ) ; } } catch ( RuntimeException e ) { String message = "Error<seq2seq4repair_space>encountered<seq2seq4repair_space>while<seq2seq4repair_space>evaluating<seq2seq4repair_space>rule:<seq2seq4repair_space>" + rule ; if ( rule instanceof Context ) { Object origin = ( ( Context ) ( rule ) ) . get ( ORIGIN ) ; if ( origin != null ) message += "<seq2seq4repair_space>from:<seq2seq4repair_space>" + origin ; Object location = ( ( Context ) ( rule ) ) . get ( PROVIDER_LOCATION ) ; if ( location != null ) message += "<seq2seq4repair_space>defined<seq2seq4repair_space>in:<seq2seq4repair_space>" + location ; } throw new WindupException ( message , e ) ; } } } private boolean handleBindings ( final Rewrite event , final RuleSubset . EvaluationContextImpl context , ParameterValueStore values ) { } @ Override public List < Operation > getOperations ( ) { } private static class EvaluationContextImpl extends ContextBase implements EvaluationContext { private final List < Operation > preOperations = new ArrayList < > ( ) ; private final List < Operation > postOperations = new ArrayList < > ( ) ; private RewriteState state ; public EvaluationContextImpl ( ) { } @ Override public void addPreOperation ( final Operation operation ) { } @ Override public void addPostOperation ( final Operation operation ) { } public List < Operation > getPreOperations ( ) { } public List < Operation > getPostOperations ( ) { } @ Override public String toString ( ) { } public void clear ( ) { } @ Override public RewriteState getState ( ) { } public void setState ( RewriteState state ) { } } @ Override public Set < String > getRequiredParameterNames ( ) { } @ Override public void setParameterStore ( final ParameterStore parent ) { } private static class ParameterizedCallbackImpl implements ParameterizedCallback { private final Rule rule ; private final ParameterStore parent ; public ParameterizedCallbackImpl ( Rule rule , ParameterStore parent ) { } @ Override public void call ( Parameterized parameterized ) { } private void throwRedefinitionError ( Rule rule , String name ) { } } }

Fix:
event . getGraphContext ( ) . getGraph ( ) . getBaseGraph ( ) . commit ( ) ;