private static function persistTransactionPart($transactionPart, $transaction_id) {
        $transactionPart->transaction_id = $transaction_id;

        TransactionPersistance::setAccountBalance($transactionPart->account_id, $transactionPart->accountSide, $transactionPart->value);

        if (!$transactionPart->save(false)) {
            throw new Exception("TransactionPart could not be saved. Data: " . print_r($transactionPart->attributes,true));
        }
    }