public Conditional getRuleAnswer(int id)
    {
        Conditional ans=null;
        try{
            stat.setQueryTimeout(30);
            ResultSet rs = stat.executeQuery("SELECT * FROM Answer WHERE RuleId ="+id+";");
           
            boolean b = rs.getInt("NotFlag") ==1 ? true : false ;
            ans = new Conditional(ARKS.Facts.get(rs.getInt("FactId")-1),b);
 
        }catch (Exception e){
            System.out.println("Getting Rule Answer Failed");
            System.out.println(e.getMessage());
        }
        
        return ans;
    }