static ThreadGroupReference group() { if (group == null) { // Current thread group defaults to the first top level // thread group. setThreadGroup((ThreadGroupReference) Env.vm().topLevelThreadGroups().get(0)); } return group; }