def get_service_references(self, clazz, ldap_filter=None):
        # type: (Optional[str], Optional[str]) -> Optional[List[ServiceReference]]
        """
        Returns the service references for services that were registered under
        the specified class by this bundle and matching the given filter

        :param clazz: The class name with which the service was registered.
        :param ldap_filter: A filter on service properties
        :return: The list of references to the services registered by the
                 calling bundle and matching the filters.
        """
        refs = self.__framework.find_service_references(clazz, ldap_filter)
        if refs:
            for ref in refs:
                if ref.get_bundle() is not self.__bundle:
                    refs.remove(ref)

        return refs
def get_service_references ( self , clazz , ldap_filter = None ) : refs = self . __framework . find_service_references ( clazz , ldap_filter ) if refs : for ref in refs : if ref . get_bundle ( ) is not self . __bundle : refs . remove ( ref ) return refs
Returns the service references for services that were registered under
        the specified class by this bundle and matching the given filter

        :param clazz: The class name with which the service was registered.
        :param ldap_filter: A filter on service properties
        :return: The list of references to the services registered by the
                 calling bundle and matching the filters.