Buggy code:
public class StatefulComponentDescription extends SessionBeanComponentDescription { private static final Logger logger = Logger . getLogger ( StatefulComponentDescription . class ) ; public StatefulComponentDescription ( final String componentName , final String componentClassName , final EjbJarDescription ejbJarDescription , final ServiceName deploymentUnitServiceName ) { } @ Override public ComponentConfiguration createConfiguration ( EEModuleConfiguration moduleConfiguration ) { } @ Override public boolean allowsConcurrentAccess ( ) { } @ Override public SessionBeanType getSessionBeanType ( ) { } @ Override protected void setupViewInterceptors ( ViewDescription view ) { super . setupViewInterceptors ( view ) ; view . getConfigurators ( ) . addFirst ( new ViewConfigurator ( ) { @ Override public void configure ( DeploymentPhaseContext context , ComponentConfiguration componentConfiguration , ViewDescription description , ViewConfiguration configuration ) throws DeploymentUnitProcessingException { configuration . addViewInterceptor ( new org . jboss . invocation . ImmediateInterceptorFactory ( new ComponentInstanceInterceptor ( ) ) ) ; } } ) ; if ( CONTAINER . equals ( this . getTransactionManagementType ( ) ) ) { view . getConfigurators ( ) . add ( new ViewConfigurator ( ) { @ Override public void configure ( DeploymentPhaseContext context , ComponentConfiguration componentConfiguration , ViewDescription description , ViewConfiguration configuration ) throws DeploymentUnitProcessingException { StatefulComponentDescription . logger . warn ( "Interceptors<seq2seq4repair_space>at<seq2seq4repair_space>ComponentInstance<seq2seq4repair_space>level<seq2seq4repair_space>aren't<seq2seq4repair_space>supported<seq2seq4repair_space>yet<seq2seq4repair_space>-<seq2seq4repair_space>SessionSynchronization<seq2seq4repair_space>semantics<seq2seq4repair_space>for<seq2seq4repair_space>Stateful<seq2seq4repair_space>beans<seq2seq4repair_space>with<seq2seq4repair_space>CMT<seq2seq4repair_space>won't<seq2seq4repair_space>work!" ) ; } } ) ; } else { view . getConfigurators ( ) . add ( new ViewConfigurator ( ) { @ Override public void configure ( DeploymentPhaseContext context , ComponentConfiguration componentConfiguration , ViewDescription description , ViewConfiguration configuration ) throws DeploymentUnitProcessingException { final ComponentInterceptorFactory bmtComponentInterceptorFactory = new ComponentInterceptorFactory ( ) { @ Override protected Interceptor create ( Component component , InterceptorFactoryContext context ) { <START_BUG> if ( ( component instanceof StatefulComponentDescription ) == false ) { <END_BUG> throw new IllegalArgumentException ( ( ( ( ( "Component<seq2seq4repair_space>" + component ) + "<seq2seq4repair_space>with<seq2seq4repair_space>component<seq2seq4repair_space>class:<seq2seq4repair_space>" ) + ( component . getComponentClass ( ) ) ) + "<seq2seq4repair_space>isn't<seq2seq4repair_space>a<seq2seq4repair_space>stateful<seq2seq4repair_space>component" ) ) ; } return new StatefulBMTInterceptor ( ( ( StatefulSessionComponent ) ( component ) ) ) ; } } ; configuration . addViewInterceptor ( bmtComponentInterceptorFactory ) ; } } ) ; } } }

Fix:
if ( ( component instanceof StatefulSessionComponent ) == false ) {