Binding binding = createBinding(nodeId, queueName, condition, selector, channelId, true);
Selector filter = null; if (selector != null) { filter = new Selector(selector); }  Binding binding = createBinding(nodeId, queueName, condition, filter, channelId, true);
   protected List getBindings() throws Exception   {      Connection conn = null;      PreparedStatement ps  = null;      ResultSet rs = null;      TransactionWrapper wrap = new TransactionWrapper();            List list = new ArrayList();            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);                        long channelId = rs.getLong(5);                          //We don't load the actual queue - this is because we don't know the paging params until            //activation time                                Binding binding = createBinding(nodeId, queueName, condition, selector, channelId, true);                        list.add(binding);         }                  return list;      }      finally      {         if (rs != null)         {            rs.close();         }         if (ps != null)         {            ps.close();         }         if (conn != null)         {            conn.close();         }         wrap.end();      }        }