copy Binding class from NamespaceService.  should move this to shared module.