public static function getUserEnvironmentVariable($var_name) {
    $result = getenv($var_name);
    if ($result === false) {
      $result = getenv(self::HTTP_X_APPENGINE . $var_name);
    }
    return $result;
  }