static boolean forwardToRuntimeQueue(OperationContext context, ModelNode operation, OperationStepHandler handler) {
        PathAddress address = context.getCurrentAddress();

        // do not forward if the current operation is for a runtime-queue already:
        if (RUNTIME_QUEUE.equals(address.getLastElement().getKey())) {
            return false;
        }

        String queueName = address.getLastElement().getValue();

        PathAddress activeMQPathAddress = MessagingServices.getActiveMQServerPathAddress(address);
        if (context.readResourceFromRoot(activeMQPathAddress, false).hasChild(address.getLastElement())) {
            return false;
        } else {
            // there is no registered queue resource, forward to the runtime-queue address instead
            ModelNode forwardOperation = operation.clone();
            forwardOperation.get(ModelDescriptionConstants.OP_ADDR).set(activeMQPathAddress.append(RUNTIME_QUEUE, queueName).toModelNode());
            context.addStep(forwardOperation, handler, OperationContext.Stage.RUNTIME, true);
            return true;
        }
    }
static boolean forwardToRuntimeQueue(OperationContext context, ModelNode operation, OperationStepHandler handler) {
        PathAddress address = context.getCurrentAddress();

        
        if (RUNTIME_QUEUE.equals(address.getLastElement().getKey())) {
            return false;
        }

        String queueName = address.getLastElement().getValue();

        PathAddress activeMQPathAddress = MessagingServices.getActiveMQServerPathAddress(address);
        if (context.readResourceFromRoot(activeMQPathAddress, false).hasChild(address.getLastElement())) {
            return false;
        } else {
            
            ModelNode forwardOperation = operation.clone();
            forwardOperation.get(ModelDescriptionConstants.OP_ADDR).set(activeMQPathAddress.append(RUNTIME_QUEUE, queueName).toModelNode());
            context.addStep(forwardOperation, handler, OperationContext.Stage.RUNTIME, true);
            return true;
        }
    }
static boolean forwardToRuntimeQueue ( OperationContext context , ModelNode operation , OperationStepHandler handler ) { PathAddress address = context . getCurrentAddress ( ) ; // do not forward if the current operation is for a runtime-queue already: if ( RUNTIME_QUEUE . equals ( address . getLastElement ( ) . getKey ( ) ) ) { return false ; } String queueName = address . getLastElement ( ) . getValue ( ) ; PathAddress activeMQPathAddress = MessagingServices . getActiveMQServerPathAddress ( address ) ; if ( context . readResourceFromRoot ( activeMQPathAddress , false ) . hasChild ( address . getLastElement ( ) ) ) { return false ; } else { // there is no registered queue resource, forward to the runtime-queue address instead ModelNode forwardOperation = operation . clone ( ) ; forwardOperation . get ( ModelDescriptionConstants . OP_ADDR ) . set ( activeMQPathAddress . append ( RUNTIME_QUEUE , queueName ) . toModelNode ( ) ) ; context . addStep ( forwardOperation , handler , OperationContext . Stage . RUNTIME , true ) ; return true ; } }
[AS7-5850] Core queues created with ActiveMQ API does not create WildFly resources

For backwards compatibility if an operation is invoked on a queue that has no corresponding resources,
we forward the operation to the corresponding runtime-queue resource (which *does* exist).

@return true if the operation is forwarded to the corresponding runtime-queue resource, false else.
[ AS7 - 5850 ] Core queues created with ActiveMQ API does not create WildFly resources