{
incompleteTransactions.put(currentTransaction, currentTransaction);
currentTransactions.remove(new Integer(register.getThreadId()));
} */
JBTMethod newMethod = new JBTMethod();
newMethod.setDataStart(register);
newMethod.setDepth(1);
ArrayList methodsList = new ArrayList();
methodsList.add(newMethod);
currentTransaction = new JBTTransaction();
transactionID += 1;
currentTransaction.setTransactionID(transactionID);
currentTransaction.setMethods(methodsList);
currentTransaction.setCurrentMethod(methodsList.size() - 1);
currentTransaction.setCurrentDepth(1);
currentTransactions.put(new Integer(register.getThreadId()), currentTransaction);
}
else
{
if (currentTransaction != null)
{
JBTMethod newMethod = new JBTMethod();
newMethod.setDataStart(register);
newMethod.setDepth(currentTransaction.getCurrentDepth() + 1);
ArrayList methodsList = currentTransaction.getMethods();
methodsList.add(newMethod);
currentTransaction.setTransactionID(currentTransaction.getTransactionID());
currentTransaction.setMethods(methodsList);
currentTransaction.setCurrentMethod(methodsList.size() - 1);
currentTransaction.setCurrentDepth(newMethod.getDepth());
currentTransactions.put(new Integer(register.getThreadId()), currentTransaction);
}
}
}