public static boolean getBooleanValue()

in common/src/main/java/jetbrains/buildServer/torrent/torrent/TorrentUtil.java [122:131]


  public static boolean getBooleanValue(@NotNull final Properties properties, final String propertyName, final boolean defaultValue){
    final String value = properties.getProperty(propertyName);
    if (Boolean.TRUE.toString().equalsIgnoreCase(value)){
      return true;
    } else if (Boolean.FALSE.toString().equalsIgnoreCase(value)){
      return false;
    } else {
      return defaultValue;
    }
  }