String nodeId = rs.getString(1);
int nodeId = rs.getInt(1);
   protected void loadBindings() throws Exception   {      lock.writeLock().acquire();            log.info("loading bindings");            Connection conn = null;      PreparedStatement ps  = null;      ResultSet rs = null;      TransactionWrapper wrap = new TransactionWrapper();               try      {         conn = ds.getConnection();                  ps = conn.prepareStatement(getSQLStatement("LOAD_BINDINGS"));                          ps.setString(1, this.officeName);         rs = ps.executeQuery();                       while (rs.next())         {            String nodeId = rs.getString(1);                        String queueName = rs.getString(2);                        String condition = rs.getString(3);                        String selector = rs.getString(4);                        if (rs.wasNull())            {               selector = null;            }                        long channelId = rs.getLong(5);                                                         Binding binding = this.createBinding(nodeId, condition, queueName, channelId, selector, true);            binding.getQueue().deactivate();                        addBinding(binding);         }      }      finally      {         lock.writeLock().release();                  if (rs != null)         {            rs.close();         }         if (ps != null)         {            ps.close();         }         if (conn != null)         {            conn.close();         }         wrap.end();      }   }