code: private boolean safeParseBoolean(String text, boolean defaultValue) {
  
          if (text == null) {
              return defaultValue;
          }
          try {
              return Boolean.parseBoolean(text);
          } catch (Throwable t) {
              return defaultValue;
          }
      }
docs: Parses a boolean from a string and returns a default value if the string couldn't be parsed.<p>
  
  @param text the text from which to get the boolean value
  @param defaultValue the value to return if parsing fails
  
  @return the parsed boolean