+ /**
+ * Gather object destruction callback to be called in reverse order at the
+ * end of the thread
+ */
+ synchronized void registerDestructionCallback(String name, Runnable callback) {
+ destructionCallbacks.add(callback);
+ }
+
+ protected ProcessThreadGroup getProcessThreadGroup() {
+ return (ProcessThreadGroup) getThreadGroup();
+ }
+}
\ No newline at end of file