ps.setString(5, binding.getSelector());
if (filterString != null) { ps.setString(5, filterString); } else { ps.setNull(5, Types.VARCHAR); }
   protected void insertBinding(Binding binding) throws Exception   {      Connection conn = null;      PreparedStatement ps  = null;           TransactionWrapper wrap = new TransactionWrapper();            try      {         conn = ds.getConnection();                  ps = conn.prepareStatement(getSQLStatement("INSERT_BINDING"));                           ps.setString(1, this.officeName);         ps.setString(2, this.nodeId);         ps.setString(3, binding.getQueueName());         ps.setString(4, binding.getCondition());                  ps.setString(5, binding.getSelector());         ps.setLong(6, binding.getChannelId());         ps.executeUpdate();;      }      finally      {         if (ps != null)         {            ps.close();         }         if (conn != null)         {            conn.close();         }         wrap.end();      }        }