Buggy code:
public final class ConnectorSubsystemAdd extends AbstractSubsystemAdd < ConnectorSubsystemElement > { private static final long serialVersionUID = - 874698675049495644L ; private boolean archiveValidation = true ; private boolean archiveValidationFailOnError = true ; private boolean archiveValidationFailOnWarn = false ; private boolean beanValidation = true ; private String shortRunningThreadPool = null ; private String longRunningThreadPool = null ; protected ConnectorSubsystemAdd ( ) { } @ Override protected < P > void applyUpdate ( final UpdateContext updateContext , final UpdateResultHandler < ? super Void , P > resultHandler , final P param ) { final ServiceTarget serviceTarget = updateContext . getServiceTarget ( ) ; WorkManager wm = new WorkManagerImpl ( ) ; final WorkManagerService wmService = new WorkManagerService ( wm ) ; serviceTarget . addService ( WORKMANAGER_SERVICE , wmService ) . addDependency ( EXECUTOR . append ( shortRunningThreadPool ) , Executor . class , wmService . getExecutorShortInjector ( ) ) . addDependency ( EXECUTOR . append ( longRunningThreadPool ) , Executor . class , wmService . getExecutorLongInjector ( ) ) . addDependency ( JBOSS_TXN_XA_TERMINATOR , JBossXATerminator . class , wmService . getXaTerminatorInjector ( ) ) . setInitialMode ( ACTIVE ) . install ( ) ; CloneableBootstrapContext ctx = new BaseCloneableBootstrapContext ( ) ; final DefaultBootStrapContextService defaultBootCtxService = new DefaultBootStrapContextService ( ctx ) ; <START_BUG> serviceTarget . addService ( DEFAULT_BOOTSTRAP_CONTEXT_SERVICE , defaultBootCtxService ) . addDependency ( WORKMANAGER_SERVICE , WorkManager . class , defaultBootCtxService . getWorkManagerValueInjector ( ) ) . addDependency ( JBOSS_TXN_XA_TERMINATOR , JBossXATerminator . class , defaultBootCtxService . getXaTerminatorInjector ( ) ) . addDependency ( JBOSS_TXN_TRANSACTION_MANAGER , TransactionManagerService . class , defaultBootCtxService . getTxManagerInjector ( ) ) . setInitialMode ( ACTIVE ) . install ( ) ; <END_BUG> final ConnectorSubsystemConfiguration config = new ConnectorSubsystemConfiguration ( ) ; config . setArchiveValidation ( archiveValidation ) ; config . setArchiveValidationFailOnError ( archiveValidationFailOnError ) ; config . setArchiveValidationFailOnWarn ( archiveValidationFailOnWarn ) ; config . setBeanValidation ( false ) ; final ConnectorConfigService connectorConfigService = new ConnectorConfigService ( config ) ; serviceTarget . addService ( CONNECTOR_CONFIG_SERVICE , connectorConfigService ) . addDependency ( DEFAULT_BOOTSTRAP_CONTEXT_SERVICE , CloneableBootstrapContext . class , connectorConfigService . getDefaultBootstrapContextInjector ( ) ) . setInitialMode ( ACTIVE ) . install ( ) ; } protected void applyUpdateBootAction ( BootUpdateContext updateContext ) { } protected void applyUpdate ( ConnectorSubsystemElement element ) throws UpdateFailedException { } protected ConnectorSubsystemElement createSubsystemElement ( ) { } public boolean isArchiveValidation ( ) { } public void setArchiveValidation ( final boolean archiveValidation ) { } public boolean isArchiveValidationFailOnError ( ) { } public void setArchiveValidationFailOnError ( final boolean archiveValidationFailOnError ) { } public boolean isArchiveValidationFailOnWarn ( ) { } public void setArchiveValidationFailOnWarn ( final boolean archiveValidationFailOnWarn ) { } public boolean isBeanValidation ( ) { } public void setBeanValidation ( final boolean beanValidation ) { } public String getShortRunningThreadPool ( ) { } public void setShortRunningThreadPool ( String shortRunningThreadPool ) { } public String getLongRunningThreadPool ( ) { } public void setLongRunningThreadPool ( String longRunningThreadPool ) { } }

Fix:
serviceTarget . addService ( DEFAULT_BOOTSTRAP_CONTEXT_SERVICE , defaultBootCtxService ) . addDependency ( WORKMANAGER_SERVICE , WorkManager . class , defaultBootCtxService . getWorkManagerValueInjector ( ) ) . addDependency ( JBOSS_TXN_XA_TERMINATOR , JBossXATerminator . class , defaultBootCtxService . getXaTerminatorInjector ( ) ) . addDependency ( JBOSS_TXN_ARJUNA_TRANSACTION_MANAGER , TransactionManagerService . class , defaultBootCtxService . getTxManagerInjector ( ) ) . setInitialMode ( ACTIVE ) . install ( ) ;