code: public static URL locateClass(String binaryName, ClassLoader classLoader) {
  
      try {
  
        Class<?> type = loadClass(binaryName, false, classLoader);
  
        return type.getClassLoader().getResource(getResourceName(type));
      }
      catch (TypeNotFoundException ignore) {
        return null;
      }
    }
docs: Locates the class file resource given the binary name of the {@link Class}.  The {@link ClassLoader} used
  to search class file resource for the {@link Class} with the given binary name.
  
  @param binaryName a String with the binary name of the {@link Class} that's class file resource will be located.
  @param classLoader the {@link ClassLoader} used to locate the class file resource for the {@link Class}
  with the given binary name.
  @return a {@link URL} with the location of the class file resource containing the {@link Class} definition
  for the given binary name.
  @see java.net.URL