private static final boolean getEnv(String envVarName) {
    try {
      final String rawEnvValue = System.getenv(envVarName);
      if (isNullOrEmpty(rawEnvValue)) {
        return false;
      }
      return rawEnvValue.equals("1") || rawEnvValue.equals("true");
    } catch (Exception e) {
      return false;
    }
  }
Check of boolean-esque env. variable, or false if anything goes wrong.
portability-api-launcher/src/main/java/org/datatransferproject/launcher/monitor/ConsoleMonitor.java