}
LinkedList classQueue = new LinkedList();
classQueue.addFirst(rootArgumentType);
while (!classQueue.isEmpty()) {
Class argumentType = (Class) classQueue.removeLast();
// Check for a visit method on the visitor class matching this
// argument type.
try {
if (logger.isTraceEnabled()) {
logger.trace("Looking for method " + VISIT_METHOD + "(" + argumentType + ")");