code: private boolean isParentLoader(ClassLoader parent, ClassLoader child)
    {
      for (; child != null; child = child.getParent()) {
        if (child == parent)
          return true;
      }
  
      return false;
    }
docs: Returns true if 'parent' is a parent classloader of 'child'.
  
  @param parent the classloader to test as a parent.
  @param child the classloader to test as a child.