docs: public static boolean getBooleanValue(Object newValue, boolean defaultValue) {
          if (newValue != null) {
              if (newValue instanceof String) {
                  return Boolean.parseBoolean((String) newValue);
              } else if (newValue instanceof Boolean)
                  return (Boolean) newValue;
          }
  
          return defaultValue;
      }