Hi Ben, something struck me about the snippets you posted and so I would like to ask a question (unrelated to the topic),

you wrote (in a snippet):

// A suitable Method was found, so ensure this is a DAO
Class currentClass = targetClass;
while (currentClass != null) {
if (currentClass.isAssignableFrom(Dao.class)) {
return true;
}
currentClass = currentClass.getSuperclass();
}
return false;
I am curious why you chose to implement the while loop rather then write the statement as:

if( Dao.class.isAssignableFrom(currentClass) )
return true;
else
return false;
Is there a performance advantage or some other reason of which I need to be aware?

Cheers
Steve