String destinationName = getRealDestinationName(dConfig);
Properties props = null;
int depth = 0;
if (dConfig.getDomain() == Domain.QUEUE.getId()) {
props = seeBeyondAdmin.getQueueStatistics(destinationName);
SeeBeyondQueue sbQueue = new SeeBeyondQueue(props);
stats.put("Queue Name", sbQueue.getQueueName());
stats.put("Min Sequence Number", sbQueue.getMinSequence());
stats.put("Max Sequence Number", sbQueue.getMaxSequence());
stats.put("Available Count", sbQueue.getMessageCount());
stats.put("Number of Receivers", sbQueue.getCurrentReceivers());
stats.put("Last Published Date/Time", sbQueue.getLastEnqueueTime());
} else {
props = seeBeyondAdmin.getTopicStatistics(destinationName);
SeeBeyondTopic sbTopic = new SeeBeyondTopic(props);
stats.put("Topic Name", sbTopic.getTopicName());
stats.put("Min Sequence Number", sbTopic.getFirstSequence());