@Override
    protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException {
        synchronized (getClassLoadingLock(name)) {
            Class<?> c = findLoadedClass(name);

            if (c == null) {
                try {
                    c = findClass(name);
                } catch (ClassNotFoundException e) {
                    // Try parent
                    c = super.loadClass(name, false);
                }
            }

            if (resolve)
                resolveClass(c);

            return c;
        }
    }
@param classPath Class path string
@param parent    The parent classloader. If the required class / resource cannot be found in the given classPath,
                 this classloader will be used to find the class / resource.
clients/src/main/java/org/apache/kafka/common/utils/ChildFirstClassLoader.java