Buggy code:
public class CacheConfigOperationHandlers { static final OperationStepHandler LOCKING_ADD = new CacheConfigOperationHandlers . BasicCacheConfigAdd ( LOCKING_ATTRIBUTES ) ; static final SelfRegisteringAttributeHandler LOCKING_ATTR = new CacheConfigOperationHandlers . AttributeWriteHandler ( LOCKING_ATTRIBUTES ) ; static final OperationStepHandler TRANSACTION_ADD = new CacheConfigOperationHandlers . BasicCacheConfigAdd ( TRANSACTION_ATTRIBUTES ) ; static final SelfRegisteringAttributeHandler TRANSACTION_ATTR = new CacheConfigOperationHandlers . AttributeWriteHandler ( TRANSACTION_ATTRIBUTES ) ; static final OperationStepHandler EVICTION_ADD = new CacheConfigOperationHandlers . BasicCacheConfigAdd ( EVICTION_ATTRIBUTES ) ; static final SelfRegisteringAttributeHandler EVICTION_ATTR = new CacheConfigOperationHandlers . AttributeWriteHandler ( EVICTION_ATTRIBUTES ) ; static final OperationStepHandler EXPIRATION_ADD = new CacheConfigOperationHandlers . BasicCacheConfigAdd ( EXPIRATION_ATTRIBUTES ) ; static final SelfRegisteringAttributeHandler EXPIRATION_ATTR = new CacheConfigOperationHandlers . AttributeWriteHandler ( EXPIRATION_ATTRIBUTES ) ; static final OperationStepHandler STATE_TRANSFER_ADD = new CacheConfigOperationHandlers . BasicCacheConfigAdd ( STATE_TRANSFER_ATTRIBUTES ) ; static final SelfRegisteringAttributeHandler STATE_TRANSFER_ATTR = new CacheConfigOperationHandlers . AttributeWriteHandler ( STATE_TRANSFER_ATTRIBUTES ) ; static final OperationStepHandler STORE_ADD = new CacheConfigOperationHandlers . CacheStoreConfigAdd ( CacheConfigOperationHandlers . combine ( COMMON_STORE_ATTRIBUTES , STORE_ATTRIBUTES ) ) ; static final SelfRegisteringAttributeHandler STORE_ATTR = new CacheConfigOperationHandlers . AttributeWriteHandler ( CacheConfigOperationHandlers . combine ( COMMON_STORE_ATTRIBUTES , STORE_ATTRIBUTES ) ) ; static final OperationStepHandler FILE_STORE_ADD = new CacheConfigOperationHandlers . CacheStoreConfigAdd ( CacheConfigOperationHandlers . combine ( COMMON_STORE_ATTRIBUTES , FILE_STORE_ATTRIBUTES ) ) ; static final SelfRegisteringAttributeHandler FILE_STORE_ATTR = new CacheConfigOperationHandlers . AttributeWriteHandler ( CacheConfigOperationHandlers . combine ( COMMON_STORE_ATTRIBUTES , FILE_STORE_ATTRIBUTES ) ) ; static final OperationStepHandler JDBC_STORE_ADD = new CacheConfigOperationHandlers . CacheStoreConfigAdd ( CacheConfigOperationHandlers . combine ( COMMON_STORE_ATTRIBUTES , JDBC_STORE_ATTRIBUTES ) ) ; static final SelfRegisteringAttributeHandler JDBC_STORE_ATTR = new CacheConfigOperationHandlers . AttributeWriteHandler ( CacheConfigOperationHandlers . combine ( COMMON_STORE_ATTRIBUTES , JDBC_STORE_ATTRIBUTES ) ) ; static final OperationStepHandler REMOTE_STORE_ADD = new CacheConfigOperationHandlers . CacheStoreConfigAdd ( CacheConfigOperationHandlers . combine ( COMMON_STORE_ATTRIBUTES , REMOTE_STORE_ATTRIBUTES ) ) ; static final SelfRegisteringAttributeHandler REMOTE_STORE_ATTR = new CacheConfigOperationHandlers . AttributeWriteHandler ( CacheConfigOperationHandlers . combine ( COMMON_STORE_ATTRIBUTES , REMOTE_STORE_ATTRIBUTES ) ) ; static final OperationStepHandler REMOVE = new OperationStepHandler ( ) { @ Override public void execute ( final OperationContext context , final ModelNode operation ) throws OperationFailedException { } } ; static final OperationStepHandler STORE_PROPERTY_ADD = new OperationStepHandler ( ) { @ Override public void execute ( final OperationContext context , final ModelNode operation ) throws OperationFailedException { } } ; static final OperationStepHandler STORE_PROPERTY_ATTR = new OperationStepHandler ( ) { @ Override public void execute ( final OperationContext context , final ModelNode operation ) throws OperationFailedException { } } ; private static class BasicCacheConfigAdd implements OperationStepHandler , DescriptionProvider { private final AttributeDefinition [ ] attributes ; BasicCacheConfigAdd ( final AttributeDefinition [ ] attributes ) { } @ Override public void execute ( final OperationContext context , final ModelNode operation ) throws OperationFailedException { } void process ( ModelNode subModel , ModelNode operation ) { } public ModelNode getModelDescription ( Locale locale ) { } } private static class CacheStoreConfigAdd implements OperationStepHandler , DescriptionProvider { private final AttributeDefinition [ ] attributes ; CacheStoreConfigAdd ( final AttributeDefinition [ ] attributes ) { } @ Override public void execute ( final OperationContext context , final ModelNode operation ) throws OperationFailedException { } void process ( ModelNode subModel , ModelNode operation ) { } public ModelNode getModelDescription ( Locale locale ) { } } static class AttributeWriteHandler extends ReloadRequiredWriteAttributeHandler implements SelfRegisteringAttributeHandler { final AttributeDefinition [ ] attributes ; private AttributeWriteHandler ( AttributeDefinition [ ] attributes ) { } public void registerAttributes ( final ManagementResourceRegistration registry ) { } } static ModelNode createOperation ( AttributeDefinition [ ] attributes , ModelNode address , ModelNode existing ) throws OperationFailedException { } static ModelNode createStoreOperation ( AttributeDefinition [ ] commonAttributes , ModelNode address , ModelNode existing , AttributeDefinition ... additionalAttributes ) throws OperationFailedException { } static void reloadRequiredStep ( final OperationContext context ) { <START_BUG> if ( ( context . getProcessType ( ) . isServer ( ) ) || ( ! ( context . isBooting ( ) ) ) ) { <END_BUG> context . addStep ( new OperationStepHandler ( ) { @ Override public void execute ( final OperationContext context , final ModelNode operation ) throws OperationFailedException { PathAddress elementAddress = PathAddress . pathAddress ( operation . get ( ModelDescriptionConstants . OP_ADDR ) ) ; PathAddress cacheAddress = elementAddress . subAddress ( 0 , ( ( elementAddress . size ( ) ) - 1 ) ) ; PathAddress containerAddress = cacheAddress . subAddress ( 0 , ( ( cacheAddress . size ( ) ) - 2 ) ) ; String cacheName = cacheAddress . getLastElement ( ) . getValue ( ) ; String containerName = containerAddress . getLastElement ( ) . getValue ( ) ; ServiceName cacheConfigurationServiceName = CacheConfigurationService . getServiceName ( containerName , cacheName ) ; final ServiceController < ? > controller = context . getServiceRegistry ( false ) . getService ( cacheConfigurationServiceName ) ; if ( controller != null ) { context . reloadRequired ( ) ; } if ( ( context . completeStep ( ) ) == ( ResultAction . ROLLBACK ) ) { context . revertReloadRequired ( ) ; } } } , RUNTIME ) ; } } private static PathAddress getCacheAddress ( ModelNode operation ) { } private static ModelNode getCache ( OperationContext context , PathAddress cacheAddress ) { } private static boolean isCacheStoreDefined ( OperationContext context , ModelNode operation ) { } private static String getDefinedCacheStore ( OperationContext context , ModelNode operation ) { } private static AttributeDefinition [ ] combine ( AttributeDefinition [ ] one , AttributeDefinition [ ] two ) { } }

Fix:
if ( ( context . getProcessType ( ) . isServer ( ) ) && ( ! ( context . isBooting ( ) ) ) ) {