Buggy code:
public class ReadResourceDescriptionHandler implements OperationStepHandler { private static final SimpleAttributeDefinition INHERITED = new org . jboss . as . controller . SimpleAttributeDefinitionBuilder ( org . jboss . as . controller . descriptions . ModelDescriptionConstants . INHERITED , org . jboss . dmr . ModelType . BOOLEAN ) . setAllowNull ( true ) . setDefaultValue ( new ModelNode ( true ) ) . build ( ) ; private static final SimpleAttributeDefinition OPERATIONS = new org . jboss . as . controller . SimpleAttributeDefinitionBuilder ( org . jboss . as . controller . descriptions . ModelDescriptionConstants . OPERATIONS , org . jboss . dmr . ModelType . BOOLEAN ) . setAllowNull ( true ) . setDefaultValue ( new ModelNode ( false ) ) . build ( ) ; static final OperationDefinition DEFINITION = new org . jboss . as . controller . SimpleOperationDefinitionBuilder ( READ_RESOURCE_DESCRIPTION_OPERATION , ControllerResolver . getResolver ( "global" ) ) . setParameters ( ReadResourceDescriptionHandler . OPERATIONS , ReadResourceDescriptionHandler . INHERITED , GlobalOperationHandlers . RECURSIVE , GlobalOperationHandlers . RECURSIVE_DEPTH , GlobalOperationHandlers . PROXIES , GlobalOperationHandlers . INCLUDE_ALIASES , GlobalOperationHandlers . ACCESS_CONTROL , GlobalOperationHandlers . LOCALE ) . setReadOnly ( ) . setRuntimeOnly ( ) . setReplyType ( OBJECT ) . build ( ) ; static final OperationStepHandler INSTANCE = new ReadResourceDescriptionHandler ( ) ; private ReadResourceDescriptionHandler ( ) { } ReadResourceDescriptionHandler . ReadResourceDescriptionAccessControlContext getAccessControlContext ( ) { } @ Override public void execute ( final OperationContext context , final ModelNode operation ) throws OperationFailedException { } private void doExecute ( OperationContext context , ModelNode operation , ReadResourceDescriptionHandler . ReadResourceDescriptionAccessControlContext accessControlContext ) throws OperationFailedException { } private void doExecuteInternal ( final OperationContext context , final ModelNode operation , final ReadResourceDescriptionHandler . ReadResourceDescriptionAccessControlContext accessControlContext ) throws OperationFailedException { } private ImmutableManagementResourceRegistration getResourceRegistrationCheckForAlias ( OperationContext context , PathAddress opAddr , ReadResourceDescriptionHandler . ReadResourceDescriptionAccessControlContext accessControlContext ) { } private void executeMultiTarget ( final OperationContext context , final ModelNode operation , final ReadResourceDescriptionHandler . ReadResourceDescriptionAccessControlContext accessControlContext ) { } static final class CheckResourceAccessHandler implements OperationStepHandler { static final OperationDefinition DEFAULT_DEFINITION = new org . jboss . as . controller . SimpleOperationDefinitionBuilder ( GlobalOperationHandlers . CHECK_DEFAULT_RESOURCE_ACCESS , new org . jboss . as . controller . descriptions . NonResolvingResourceDescriptionResolver ( ) ) . setPrivateEntry ( ) . build ( ) ; static final OperationDefinition DEFINITION = new org . jboss . as . controller . SimpleOperationDefinitionBuilder ( GlobalOperationHandlers . CHECK_RESOURCE_ACCESS , new org . jboss . as . controller . descriptions . NonResolvingResourceDescriptionResolver ( ) ) . setPrivateEntry ( ) . build ( ) ; private final boolean defaultSetting ; private final ModelNode accessControlResult ; private final ModelNode nodeDescription ; private final Map < String , ModelNode > operations ; CheckResourceAccessHandler ( boolean defaultSetting , ModelNode accessControlResult , ModelNode nodeDescription , Map < String , ModelNode > operations ) { } @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { } private void addResourceAuthorizationResults ( ModelNode result , ResourceAuthorization authResp ) { } private void addResourceAuthorizationResult ( ModelNode result , ResourceAuthorization authResp , ActionEffect actionEffect ) { } private void addAttributeAuthorizationResults ( ModelNode result , String attributeName , ResourceAuthorization authResp , boolean runtime ) { } private void addAttributeAuthorizationResult ( ModelNode result , String attributeName , ResourceAuthorization authResp , ActionEffect actionEffect ) { } private void addOperationAuthorizationResult ( OperationContext context , ModelNode result , ModelNode operation , String operationName ) { <START_BUG> AuthorizationResult authorizationResult = context . authorizeOperation ( operation , false ) ; <END_BUG> result . get ( EXECUTE ) . set ( ( ( authorizationResult . getDecision ( ) ) == ( Decision . PERMIT ) ) ) ; } } private static class ReadResourceDescriptionAssemblyHandler implements OperationStepHandler { private final ModelNode nodeDescription ; private final Map < String , ModelNode > operations ; private final Map < PathElement , ModelNode > childResources ; private final ReadResourceDescriptionHandler . ReadResourceDescriptionAccessControlContext accessControlContext ; private ReadResourceDescriptionAssemblyHandler ( final ModelNode nodeDescription , final Map < String , ModelNode > operations , final Map < PathElement , ModelNode > childResources , ReadResourceDescriptionHandler . ReadResourceDescriptionAccessControlContext accessControlContext ) { } @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { } } static final class ReadResourceDescriptionAccessControlContext { private final PathAddress opAddress ; private final List < PathAddress > parentAddresses ; private List < PathAddress > localResourceAddresses = null ; private ModelNode defaultWildcardAccessControl ; private Map < PathAddress , ModelNode > localResourceAccessControlResults = new HashMap < PathAddress , ModelNode > ( ) ; ReadResourceDescriptionAccessControlContext ( PathAddress opAddress , ReadResourceDescriptionHandler . ReadResourceDescriptionAccessControlContext parent ) { } private void initLocalResourceAddresses ( OperationContext context , ModelNode operation ) { } private List < PathAddress > getLocalResourceAddresses ( OperationContext context , ModelNode operation ) { } private void getAllActualResourceAddresses ( OperationContext context , ModelNode operation , List < PathAddress > addresses , PathAddress currentAddress , PathAddress opAddress ) { } private boolean addParentResource ( OperationContext context , List < PathAddress > addresses , PathAddress address ) { } void checkResourceAccess ( final OperationContext context , final ModelNode nodeDescription , Map < String , ModelNode > operations ) { } } private static class NestedReadResourceDescriptionHandler extends ReadResourceDescriptionHandler { final ReadResourceDescriptionHandler . ReadResourceDescriptionAccessControlContext accessControlContext ; public NestedReadResourceDescriptionHandler ( ReadResourceDescriptionHandler . ReadResourceDescriptionAccessControlContext accessControlContext ) { } } }

Fix:
AuthorizationResult authorizationResult = context . authorizeOperation ( operation ) ;