public static boolean booleanvalueOf(String s, boolean defaultValue) {
    if (s == null) {
      return defaultValue;
    }
    try {
      return (Boolean.parseBoolean(s));
    } catch (NumberFormatException nfe) {
      return defaultValue;
    }

  }
TODO To change the template for this generated type comment go to Window - Preferences - Java -
Code Style - Code Templates
geode-core/src/main/java/org/apache/geode/internal/cache/PRSystemPropertyGetter.java