while (clazz != null) {
if (clazz.getName().equals(className)) {
return true;
}
Class[] interfaces = clazz.getInterfaces();
<BUG>for (int i = 0; i < interfaces.length; i++) {
if (checkInterfaceHierarchy(interfaces[i])) {
</BUG>
return true;
}

while (clazz != null) {
if (clazz.getName().equals(className)) {
return true;
