long lease = getRemotingConnectionLeasePeriod();
long lease = 0;
   public synchronized void startService() throws Exception   {      if (started)      {         return;      }      log.debug(this + " starting");      loadClientAOPConfig();      loadServerAOPConfig();      MBeanServer mbeanServer = getServer();      // Acquire references to plugins. Each plug-in will be accessed directly via a reference      // circumventing the MBeanServer. However, they are installed as services to take advantage      // of their automatically-creating management interface.      threadPoolDelegate =         (ThreadPool)mbeanServer.getAttribute(threadPoolObjectName, "Instance");      persistenceManagerDelegate =         (PersistenceManager)mbeanServer.getAttribute(persistenceManagerObjectName, "Instance");      // TODO: is should be possible to share this with other peers      messageStoreDelegate =         (MessageStore)mbeanServer.getAttribute(messageStoreObjectName, "Instance");      channelMapper = (ChannelMapper)mbeanServer.         getAttribute(channelMapperObjectName, "Instance");      // TODO: Shouldn't this go into ChannelMapper's dependencies? Since it's a plug in,      //       we shouldn't inject their dependencies externally, but they should take care      ///      of them themselves.      channelMapper.setPersistenceManager(persistenceManagerDelegate);      // start the rest of the internal components      destinationJNDIMapper.start();      securityStore.start();      connFactoryJNDIMapper.start();      txRepository.start(persistenceManagerDelegate);      txRepository.loadPreparedTransactions();            //TODO Make block size configurable      messageIdManager = new IdManager("MESSAGE_ID", 8192, persistenceManagerDelegate);      initializeRemoting(mbeanServer);      createRecoverable();      started = true;      long lease = getRemotingConnectionLeasePeriod();      log.info("JBoss Messaging " + getVersion().getProviderVersion() + " server [" +         getServerPeerID()+ "] started, " +         (lease < 0 ?            "no connection failure checking" :            "connection failure checking active, lease period " + lease + " ms"));   }