protected static function writeSwaggerDocumentToFile($path, $content)
    {
        $fh = new File($path, true);
        if (!$fh->write($content)) {
            throw new InternalErrorException('Error writing Swagger json document to filesystem');
        }

        return true;
    }