static void validateModel(OperationContext context, ModelNode operation, Resource resource) throws OperationFailedException {
    """
	Validate that an updated address-settings still has resources bound corresponding
	to expiry-address and dead-letter-address (if they are defined).
    """
        String addressSetting = PathAddress.pathAddress(operation.require(OP_ADDR)).getLastElement().getValue();
        PathAddress address = pathAddress(operation.require(ModelDescriptionConstants.OP_ADDR));

        Resource activeMQServer = context.readResourceFromRoot(MessagingServices.getActiveMQServerPathAddress(address), true);

        checkExpiryAddress(context, resource.getModel(), activeMQServer, addressSetting);
        checkDeadLetterAddress(context, resource.getModel(), activeMQServer, addressSetting);
    }
static void validateModel(OperationContext context, ModelNode operation, Resource resource) throws OperationFailedException {
        String addressSetting = PathAddress.pathAddress(operation.require(OP_ADDR)).getLastElement().getValue();
        PathAddress address = pathAddress(operation.require(ModelDescriptionConstants.OP_ADDR));

        Resource activeMQServer = context.readResourceFromRoot(MessagingServices.getActiveMQServerPathAddress(address), true);

        checkExpiryAddress(context, resource.getModel(), activeMQServer, addressSetting);
        checkDeadLetterAddress(context, resource.getModel(), activeMQServer, addressSetting);
    }
static void validateModel ( OperationContext context , ModelNode operation , Resource resource ) throws OperationFailedException { String addressSetting = PathAddress . pathAddress ( operation . require ( OP_ADDR ) ) . getLastElement ( ) . getValue ( ) ; PathAddress address = pathAddress ( operation . require ( ModelDescriptionConstants . OP_ADDR ) ) ; Resource activeMQServer = context . readResourceFromRoot ( MessagingServices . getActiveMQServerPathAddress ( address ) , true ) ; checkExpiryAddress ( context , resource . getModel ( ) , activeMQServer , addressSetting ) ; checkDeadLetterAddress ( context , resource . getModel ( ) , activeMQServer , addressSetting ) ; }
Validate that an updated address-settings still has resources bound corresponding
to expiry-address and dead-letter-address (if they are defined).
Validate that an updated address - settings still has resources bound corresponding to expiry - address and dead - letter - address ( if they are defined ) .