code: static public void renewExpiredToken(SFSession connection, String command,
                                         SnowflakeStorageClient client)
    throws SnowflakeSQLException
    {
      SFStatement statement = new SFStatement(connection);
      JsonNode jsonNode = parseCommandInGS(statement, command);
      Map stageCredentials = extractStageCreds(jsonNode);
  
      // renew client with the fresh token
      logger.debug("Renewing expired access token");
      client.renew(stageCredentials);
    }
docs: This static method is called when we are handling an expired token exception
  It retrieves a fresh token from GS and then calls .renew() on the storage
  client to refresh itself with the new token
  
  @param connection a connection object
  @param command    a command to be retried
  @param client     a Snowflake Storage client object
  @throws SnowflakeSQLException if any error occurs