ManageableQueue q = (ManageableQueue)cm.getCoreDestination(jbq);
org.jboss.messaging.core.local.Queue q = (org.jboss.messaging.core.local.Queue)cm.getCoreDestination(jbq);
   public int getMessageCount() throws JMSException   {      if (!started)      {         log.warn("Queue is stopped.");         return 0;      }      JBossQueue jbq = new JBossQueue(name);	   ManageableQueue q = (ManageableQueue)cm.getCoreDestination(jbq);	   return q.getMessageCount();   }