/**
  * Gets the singleton instance
  */
 public static VolatileRegistry getInstance()
 {
     if (instance == null) {
         instance = new VolatileRegistry();
     }
     return instance;
 }
 /**
  * Stores a Sub Registry (another VolatileRegistry instance)
  */
 public void setSubRegistry(string key, VolatileRegistry registry)
 {
     dRegistries [key] = registry;
 }
 /**
  * Creates and stores a Sub Registry (another VolatileRegistry instance).
  */
 public VolatileRegistry newSubRegistry(string key)
 {
     VolatileRegistry registry = new VolatileRegistry ();
     this.setSubRegistry (key, registry);
     return registry;
 }