Exemplo n.º 1
0
 public boolean flag(String query, boolean defaultValue) {
   Item item = optional(query);
   if (item != Item.NULL) {
     try {
       return item.booleanValue();
     } catch (Exception e) {
       LOG.error(
           "illegal flag value '"
               + item
               + "' found for query "
               + query
               + "; using default '"
               + defaultValue
               + "'");
     }
   }
   return defaultValue;
 }