public void checkAccess(ThreadGroup g)
public void checkAccess(Thread thread)
  public void checkAccess(ThreadGroup g)  {        if (g.getParent() != null)                checkPermission(new RuntimePermission("modifyThreadGroup"));    }