}
public static IIORegistry getDefaultInstance() {
ThreadGroup tg = Thread.currentThread().getThreadGroup();
synchronized (instances) {
IIORegistry instance = instances.get(tg);
if (instance == null) {
synchronized(IIORegistry.class) {
instance = new IIORegistry();
}
instances.put(tg, instance);
}
return instance;
}