added getNames() method to registry.