private boolean isParentLoader(ClassLoader parent,ClassLoader child){
  for (; child != null; child=child.getParent()) {
    if (child == parent)     return true;
  }
  return false;
}

private boolean isParentLoader ( ClassLoader parent , ClassLoader child ) { for ( ; child != null ; child = child . getParent ( ) ) { if ( child == parent ) return true ; } return false ; }
returns true if ' parent ' is a parent classloader of ' child ' .
