* In this case, the commitDependent method is equivalent to commit.
*/
public static void commitDependent() {
LightweightStack<TransactionData> currentTransactions = _transactionStorage.get();
if (currentTransactions.empty()) {
throw new UsageException("commitNested called when not in a transaction");
}
TransactionData transactionData = (TransactionData)currentTransactions.peek();
if (transactionData.getType() == TransactionType.DEPENDENT) {
// Use endTransaction to do the work for us, we know the state is consistent
TransactionMgr.endTransaction();