final String queueName = operation.require(QUEUE_NAME).asString();
String json = control.listMessagesForSubscriptionAsJSON(queueName);
context.getResult().set(ModelNode.fromJSONString(json));
} else if (JMSTopicDefinition.LIST_MESSAGES_FOR_SUBSCRIPTION_AS_JSON.equals(operationName)) {
final String queueName = operation.require(QUEUE_NAME).asString();
context.getResult().set(control.listMessagesForSubscriptionAsJSON(queueName));
} else if (JMSTopicDefinition.COUNT_MESSAGES_FOR_SUBSCRIPTION.equals(operationName)) {
countMessagesForSubscriptionValidator.validate(operation);
String clientId = operation.require(CLIENT_ID.getName()).asString();
String subscriptionName = operation.require(JMSTopicDefinition.SUBSCRIPTION_NAME).asString();
String filter = operation.hasDefined(FILTER.getName()) ? operation.get(FILTER.getName()).asString() : null;