ic.rebind(RECOVERABLE_JNDI_NAME + "/server-" + this.serverPeerID, recoverable);
Context recCtx = null; try { recCtx = (Context)ic.lookup(RECOVERABLE_CTX_NAME); } catch (NamingException e) {  }  if (recCtx == null) { recCtx = ic.createSubcontext(RECOVERABLE_CTX_NAME); }  recCtx.rebind(this.serverPeerID, recoverable);
   private void createRecoverable() throws Exception   {      InitialContext ic = new InitialContext();            JMSRecoverable recoverable =         new JMSRecoverable(this.serverPeerID, (XAConnectionFactory)setupConnectionFactory(null));            ic.rebind(RECOVERABLE_JNDI_NAME + "/server-" + this.serverPeerID, recoverable);   }