Buggy code:
public class EntityBeanAssociatingInterceptorFactory implements InterceptorFactory { private final Logger log = Logger . getLogger ( EntityBeanAssociatingInterceptorFactory . class ) ; public static final EntityBeanAssociatingInterceptorFactory INSTANCE = new EntityBeanAssociatingInterceptorFactory ( ) ; private EntityBeanAssociatingInterceptorFactory ( ) { } @ Override <START_BUG> public Interceptor create ( InterceptorFactoryContext context ) { <END_BUG> return new AbstractEJBInterceptor ( ) { @ Override public Object processInvocation ( final InterceptorContext context ) throws Exception { final EntityBeanComponent component = getComponent ( context , EntityBeanComponent . class ) ; final Object primaryKey = context . getPrivateData ( PRIMARY_KEY_CONTEXT_KEY ) ; if ( primaryKey == null ) { throw new NoSuchEJBException ( "Invocation<seq2seq4repair_space>was<seq2seq4repair_space>not<seq2seq4repair_space>associated<seq2seq4repair_space>with<seq2seq4repair_space>an<seq2seq4repair_space>instance,<seq2seq4repair_space>primary<seq2seq4repair_space>key<seq2seq4repair_space>was<seq2seq4repair_space>null,<seq2seq4repair_space>instance<seq2seq4repair_space>may<seq2seq4repair_space>have<seq2seq4repair_space>been<seq2seq4repair_space>removed" ) ; } final EntityBeanComponentInstance instance = component . getCache ( ) . get ( primaryKey ) ; if ( instance . isRemoved ( ) ) { throw new NoSuchEJBException ( ( ( ( ( "Instance<seq2seq4repair_space>of<seq2seq4repair_space>" + ( component . getComponentName ( ) ) ) + "<seq2seq4repair_space>with<seq2seq4repair_space>primary<seq2seq4repair_space>key<seq2seq4repair_space>" ) + primaryKey ) + "<seq2seq4repair_space>has<seq2seq4repair_space>been<seq2seq4repair_space>removed" ) ) ; } try { context . putPrivateData ( ComponentInstance . class , instance ) ; return context . proceed ( ) ; } catch ( Exception ex ) { if ( ( component . getApplicationException ( ex . getClass ( ) , context . getMethod ( ) ) ) != null ) { throw ex ; } if ( ( ex instanceof ConcurrentAccessTimeoutException ) || ( ex instanceof ConcurrentAccessException ) ) { throw ex ; } if ( ( ex instanceof RuntimeException ) || ( ex instanceof RemoteException ) ) { if ( log . isTraceEnabled ( ) ) log . trace ( ( ( "Discarding<seq2seq4repair_space>bean<seq2seq4repair_space>" + primaryKey ) + "<seq2seq4repair_space>because<seq2seq4repair_space>of<seq2seq4repair_space>exception" ) , ex ) ; component . getCache ( ) . discard ( instance ) ; } throw ex ; } catch ( final Error e ) { if ( log . isTraceEnabled ( ) ) log . trace ( ( ( "Discarding<seq2seq4repair_space>bean<seq2seq4repair_space>" + primaryKey ) + "<seq2seq4repair_space>because<seq2seq4repair_space>of<seq2seq4repair_space>error" ) , e ) ; component . getCache ( ) . discard ( instance ) ; throw e ; } catch ( final Throwable t ) { if ( log . isTraceEnabled ( ) ) log . trace ( ( ( "Discarding<seq2seq4repair_space>bean<seq2seq4repair_space>" + primaryKey ) + "<seq2seq4repair_space>because<seq2seq4repair_space>of<seq2seq4repair_space>Throwable" ) , t ) ; component . getCache ( ) . discard ( instance ) ; throw new RuntimeException ( t ) ; } finally { context . putPrivateData ( ComponentInstance . class , null ) ; } } } ; } }

Fix:
public Interceptor create ( final InterceptorFactoryContext factoryContext ) {