code: private boolean convertBoolean(Object o) {
          if (o instanceof Boolean)
              return (Boolean) o;
          return "true".equalsIgnoreCase(o.toString().trim());
      }
docs: Convert a String to a boolean value. If the string does not
  match "true", then it defaults to false.
  
  @param s
  @return boolean