code: public ClassLoader newInstance(ClassLoader parent) {
          String msg = "Cannot create a classloader.";
          try {
              return (ClassLoader) constructor.newInstance(parent);
          } catch (InstantiationException e) {
              throw new IllegalStateException(msg, e);
          } catch (IllegalAccessException e) {
              throw new IllegalStateException(msg, e);
          } catch (InvocationTargetException e) {
              throw new IllegalStateException(msg, e);
          }
  
      }
docs: Creates a new <code>ClassLoader</code> instance.
  
  @param parent the parent <code>ClassLoader</code> for the created instance.
  @return an instance of the <code>ClassLoader</code> subtype specified in this instance's constructor, having
  as parent <code>ClassLoader</code> the instance specified in the <code>parent</code> parameter.
  @throws IllegalStateException if not such instance can be created.