code: public boolean getBool(String name, boolean def) {
          final String s = getProperty(name);
          if (s == null) {
              return def;
          }
          try {
              return s != null && s.equalsIgnoreCase("true");
          } catch (Exception e) {
              return def;
          }
      }
docs: Returns the property assuming its a boolean. If it isn't or if its not
  defined, returns default value.
  
  @param name Property name
  @param def Default value
  
  @return Property value or def