Buggy code:
public class CacheConfigOperationHandlers { static final OperationStepHandler LOCKING_ADD = new CacheConfigOperationHandlers . BasicCacheConfigAdd ( LOCKING_ATTRIBUTES ) { public void process ( ModelNode submodel , ModelNode operation ) { } } ; static final CacheConfigOperationHandlers . SelfRegisteringAttributeHandler LOCKING_ATTR = new CacheConfigOperationHandlers . AttributeWriteHandler ( LOCKING_ATTRIBUTES ) ; static final OperationStepHandler TRANSACTION_ADD = new CacheConfigOperationHandlers . BasicCacheConfigAdd ( TRANSACTION_ATTRIBUTES ) ; static final CacheConfigOperationHandlers . SelfRegisteringAttributeHandler TRANSACTION_ATTR = new CacheConfigOperationHandlers . AttributeWriteHandler ( TRANSACTION_ATTRIBUTES ) ; static final OperationStepHandler EVICTION_ADD = new CacheConfigOperationHandlers . BasicCacheConfigAdd ( EVICTION_ATTRIBUTES ) ; static final CacheConfigOperationHandlers . SelfRegisteringAttributeHandler EVICTION_ATTR = new CacheConfigOperationHandlers . AttributeWriteHandler ( EVICTION_ATTRIBUTES ) ; static final OperationStepHandler EXPIRATION_ADD = new CacheConfigOperationHandlers . BasicCacheConfigAdd ( EXPIRATION_ATTRIBUTES ) ; static final CacheConfigOperationHandlers . SelfRegisteringAttributeHandler EXPIRATION_ATTR = new CacheConfigOperationHandlers . AttributeWriteHandler ( EXPIRATION_ATTRIBUTES ) ; static final OperationStepHandler STATE_TRANSFER_ADD = new CacheConfigOperationHandlers . BasicCacheConfigAdd ( STATE_TRANSFER_ATTRIBUTES ) ; static final CacheConfigOperationHandlers . 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 CacheConfigOperationHandlers . 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 CacheConfigOperationHandlers . 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 CacheConfigOperationHandlers . 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 CacheConfigOperationHandlers . 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 ) { } } interface SelfRegisteringAttributeHandler extends OperationStepHandler { void registerAttributes ( final ManagementResourceRegistration registry ) { } } static class AttributeWriteHandler extends ReloadRequiredWriteAttributeHandler implements CacheConfigOperationHandlers . 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 . getType ( ) ) == ( Type . SERVER ) ) { <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 ( ) ; } context . completeStep ( ) ; } } , 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 ( ) ) {