&& thread.getThreadGroup().getParent() != null)
&& thread.getThreadGroup().getParent() == null)
  public void checkAccess(Thread thread)  {    if (thread.getThreadGroup() != null 	&& thread.getThreadGroup().getParent() != null)            checkPermission(new RuntimePermission("modifyThread"));        }