sm.setSecurityConfig(isQueue(), destination.getName(), destination.getSecurityConfig());
   public synchronized void startService() throws Exception   {      super.startService();            try      {                                    postOffice = serverPeer.getQueuePostOfficeInstance();                  destination.setPostOffice(postOffice);         //Binding must be added before destination is registered in JNDI         //otherwise the user could get a reference to the destination and use it         //while it is still being loaded                  //Binding might already exist                     Binding binding = postOffice.getBindingForQueueName(destination.getName());                  if (binding != null)         {                 PagingFilteredQueue queue = (PagingFilteredQueue)binding.getQueue();                        queue.setPagingParams(destination.getFullSize(), destination.getPageSize(), destination.getDownCacheSize());            queue.load();            queue.activate();         }         else         {                     QueuedExecutor executor = (QueuedExecutor)pool.get();                        //Create a new queue                               PagingFilteredQueue queue;                        if (postOffice.isLocal())            {               queue = new PagingFilteredQueue(destination.getName(), idm.getId(), ms, pm, true, true,                                                                       executor, null,                                               destination.getFullSize(), destination.getPageSize(), destination.getDownCacheSize());                              postOffice.bindQueue(destination.getName(), queue);            }            else            {                              queue = new LocalClusteredQueue(postOffice, nodeId, destination.getName(), idm.getId(), ms, pm, true, true,                                                                       executor, null, tr,                                                destination.getFullSize(), destination.getPageSize(), destination.getDownCacheSize());                              ((ClusteredPostOffice)postOffice).bindClusteredQueue(destination.getName(), (LocalClusteredQueue)queue);            }                                 }                  //push security update to the server         sm.setSecurityConfig(isQueue(), destination.getName(), destination.getSecurityConfig());                   dm.registerDestination(destination);                 log.debug(this + " security configuration: " + (destination.getSecurityConfig() == null ?            "null" : "\n" + XMLUtil.elementToString(destination.getSecurityConfig())));                  started = true;                  log.info(this + " started, fullSize=" + destination.getFullSize() +                  ", pageSize=" + destination.getPageSize() + ", downCacheSize=" + destination.getDownCacheSize());      }      catch (Throwable t)      {         ExceptionUtil.handleJMXInvocation(t, this + " startService");      }   }