@Override
  public void checkPermission(Permission permission) {
    if (initialised.compareAndSet(false, true)) {
      // force early initialization of default file system to avoid `java.lang.ClassLoader#getSystemClassLoader` call during the system class loader instantiation.
      FileSystems.getDefault();
      System.clearProperty("java.security.manager");
      System.setSecurityManager(null);
    }
  }
@Override
  public void checkPermission(Permission permission)