code: func NewRegistry() *Registry {
  	r := &Registry{
  		objects:  make(map[types.ManagedObjectReference]mo.Reference),
  		handlers: make(map[types.ManagedObjectReference]RegisterObject),
  		locks:    make(map[types.ManagedObjectReference]sync.Locker),
  
  		Namespace: vim25.Namespace,
  		Path:      vim25.Path,
  	}
  
  	return r
  }
docs: // NewRegistry creates a new instances of Registry