static function getStorageObject($filename) {
        $scheme = parse_url($filename, PHP_URL_SCHEME);
        $bucket = parse_url($filename, PHP_URL_HOST);
        $path = parse_url($filename, PHP_URL_PATH);
        $object_name = trim($path, "/");
        if ($scheme == "gs") {
            $client = self::getStorageClient();
            $bucket = $client->bucket($bucket);
            $object = $bucket->object($object_name);
            return $object;
        } else {
            syslog(LOG_WARNING, "Trying to get storage object on invalid url: $filename");
            return false;
        }
    }