private function renameSource(Query $query, string $tableName = null):string {
        if($tableName == null) {
            $tableName = $this->getTableName();
        }
        $previusSource = $query->getTable();
        if(!empty($tableName)) {
            $query->table($tableName);
        }
        return $previusSource;
    }