Buggy code:
public abstract class ModelTestModelControllerService extends AbstractControllerService { private final CountDownLatch latch = new CountDownLatch ( 1 ) ; private final StringConfigurationPersister persister ; private final TransformerRegistry transformerRegistry ; private final ModelTestOperationValidatorFilter validateOpsFilter ; private final RunningModeControl runningModeControl ; private volatile ManagementResourceRegistration rootRegistration ; private volatile Throwable error ; private volatile boolean bootSuccess ; protected ModelTestModelControllerService ( final ProcessType processType , final RunningModeControl runningModeControl , final TransformerRegistry transformerRegistry , final StringConfigurationPersister persister , final ModelTestOperationValidatorFilter validateOpsFilter , final DescriptionProvider rootDescriptionProvider , ControlledProcessState processState , ModelTestModelControllerService . Controller71x version ) { } protected ModelTestModelControllerService ( final ProcessType processType , final RunningModeControl runningModeControl , final TransformerRegistry transformerRegistry , final StringConfigurationPersister persister , final ModelTestOperationValidatorFilter validateOpsFilter , final ModelTestModelControllerService . DelegatingResourceDefinition rootResourceDefinition , ControlledProcessState processState , ModelTestModelControllerService . Controller72x version ) { } protected ModelTestModelControllerService ( final ProcessType processType , final RunningModeControl runningModeControl , final TransformerRegistry transformerRegistry , final StringConfigurationPersister persister , final ModelTestOperationValidatorFilter validateOpsFilter , final DescriptionProvider rootDescriptionProvider , ControlledProcessState processState , ModelTestModelControllerService . Controller72x version ) { } protected ModelTestModelControllerService ( final ProcessType processType , final RunningModeControl runningModeControl , final TransformerRegistry transformerRegistry , final StringConfigurationPersister persister , final ModelTestOperationValidatorFilter validateOpsFilter , final ModelTestModelControllerService . DelegatingResourceDefinition rootResourceDefinition , ControlledProcessState processState , ExpressionResolver expressionResolver , ModelTestModelControllerService . Controller80x version ) { } protected ModelTestModelControllerService ( final ProcessType processType , final RunningModeControl runningModeControl , final TransformerRegistry transformerRegistry , final StringConfigurationPersister persister , final ModelTestOperationValidatorFilter validateOpsFilter , final DescriptionProvider rootDescriptionProvider , ControlledProcessState processState , ModelTestModelControllerService . Controller80x version ) { } public boolean isSuccessfulBoot ( ) { } public Throwable getBootError ( ) { } RunningMode getRunningMode ( ) { } ProcessType getProcessType ( ) { } @ Override protected void initModel ( Resource rootResource , ManagementResourceRegistration rootRegistration ) { } protected void initCoreModel ( Resource rootResource , ManagementResourceRegistration rootRegistration ) { } protected void initExtraModel ( Resource rootResource , ManagementResourceRegistration rootRegistration ) { } TransformerRegistry getTransformersRegistry ( ) { } @ Override protected boolean boot ( List < ModelNode > bootOperations , boolean rollbackOnRuntimeFailure ) throws ConfigurationPersistenceException { try { preBoot ( bootOperations , rollbackOnRuntimeFailure ) ; OperationValidator validator = new OperationValidator ( rootRegistration ) ; for ( ModelNode op : bootOperations ) { <START_BUG> ModelNode toValidate = validateOpsFilter . adjustForValidation ( op ) ; <END_BUG> if ( toValidate != null ) { validator . validateOperation ( toValidate ) ; } } bootSuccess = super . boot ( persister . getBootOperations ( ) , rollbackOnRuntimeFailure ) ; return bootSuccess ; } catch ( Exception e ) { error = e ; } catch ( Throwable t ) { error = new Exception ( t ) ; } finally { postBoot ( ) ; } return false ; } protected void preBoot ( List < ModelNode > bootOperations , boolean rollbackOnRuntimeFailure ) { } protected void postBoot ( ) { } @ Override protected void bootThreadDone ( ) { } protected void countdownDoneLatch ( ) { } @ Override public void start ( StartContext context ) throws StartException { } public void waitForSetup ( ) throws Exception { } public ManagementResourceRegistration getRootRegistration ( ) { } public static Resource grabRootResource ( ModelTestKernelServices < ? > kernelServices ) { } @ Override protected ModelNode internalExecute ( ModelNode operation , OperationMessageHandler handler , OperationTransactionControl control , OperationAttachments attachments , OperationStepHandler prepareStep ) { } public ModelNode internalExecute ( ModelNode operation , OperationStepHandler handler ) { } public static final DescriptionProvider DESC_PROVIDER = new DescriptionProvider ( ) { @ Override public ModelNode getModelDescription ( Locale locale ) { } } ; public static class DelegatingResourceDefinition implements ResourceDefinition { private volatile ResourceDefinition delegate ; public void setDelegate ( ResourceDefinition delegate ) { } @ Override public void registerOperations ( ManagementResourceRegistration resourceRegistration ) { } @ Override public void registerChildren ( ManagementResourceRegistration resourceRegistration ) { } @ Override public void registerAttributes ( ManagementResourceRegistration resourceRegistration ) { } @ Override public PathElement getPathElement ( ) { } @ Override public DescriptionProvider getDescriptionProvider ( ImmutableManagementResourceRegistration resourceRegistration ) { } } public static class Controller71x { public static ModelTestModelControllerService . Controller71x INSTANCE = new ModelTestModelControllerService . Controller71x ( ) ; private Controller71x ( ) { } } public static class Controller72x { public static ModelTestModelControllerService . Controller72x INSTANCE = new ModelTestModelControllerService . Controller72x ( ) ; private Controller72x ( ) { } } public static class Controller80x { public static ModelTestModelControllerService . Controller80x INSTANCE = new ModelTestModelControllerService . Controller80x ( ) ; private Controller80x ( ) { } } }

Fix:
ModelNode toValidate = validateOpsFilter . adjustForValidation ( op . clone ( ) ) ;