code: def get_registered_services(self):
          # type: () -> List[ServiceReference]
          
          if self._state == Bundle.UNINSTALLED:
              raise BundleException(
                  "Can't call 'get_registered_services' on an "
                  "uninstalled bundle"
              )
          return self.__framework._registry.get_bundle_registered_services(self)
docs: Returns this bundle's ServiceReference list for all services it has
          registered or an empty list
  
          The list is valid at the time of the call to this method, however, as
          the Framework is a very dynamic environment, services can be modified
          or unregistered at any time.
  
          :return: An array of ServiceReference objects
          :raise BundleException: If the bundle has been uninstalled