I would change this to

    emptyTable->setPreTruncateTable(getPreTruncateTable());
    unsetPreTruncateTable();