private static ClassLoader getParentCl()
    {
        try
        {
            Method m = ClassLoader.class.getMethod("getPlatformClassLoader");
            return (ClassLoader) m.invoke(null);
        }
        catch (NoSuchMethodException e)
        {
            // Java < 9, just use the bootstrap CL.
            return null;
        }
        catch (Exception e)
        {
            throw new JqmInitError("Could not fetch Platform Class Loader", e);
        }
    }
private static ClassLoader getParentCl ( ) { try { Method m = ClassLoader . class . getMethod ( "getPlatformClassLoader" ) ; return ( ClassLoader ) m . invoke ( null ) ; } catch ( NoSuchMethodException e ) { return null ; } catch ( Exception e ) { throw new JqmInitError ( "Could not fetch Platform Class Loader" , e ) ; } }
A helper - in Java 9, the extension CL was renamed to platform CL and hosts all the JDK classes. Before 9, it was useless and we used
bootstrap CL instead.

@return the base CL to use.