// iterate through all added interfaces
while (typeStack.size() > 0)
{
// get next and check if matching
Class<?> iType = typeStack.pop();
if (iType.equals(interfaceType))
return true;
else
// otherwise add this type's implementing interfaces for investigation
for (Class<?> iface : iType.getInterfaces())