registry.go edited to reflect change in IDMap interface