<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_registered_services(self):
 # type: () -> List[ServiceReference] """ 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 """

        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)