code: public void failIfDenied(ModelNode operation, PathAddress targetAddress) throws OperationFailedException {
          if (decision == AuthorizationResult.Decision.DENY) {
              throw ControllerLogger.ACCESS_LOGGER.unauthorized(operation.get(OP).asString(),
                      targetAddress, explanation);
          }
  
      }
docs: Utility method to throw a standard failure if {@link #getDecision()} is
  {@link org.jboss.as.controller.access.AuthorizationResult.Decision#DENY}.
  
  @param operation the operation the triggered this authorization result. Cannot be {@code null}
  @param targetAddress the target address of the request that triggered this authorization result. Cannot be {@code null}
  @throws OperationFailedException if {@link #getDecision()} is
  {@link org.jboss.as.controller.access.AuthorizationResult.Decision#DENY}