Sets references to dependent components.

        :param references: references to locate the component dependencies.

def set_references(self, references):
        """
        Sets references to dependent components.

        :param references: references to locate the component dependencies.
        """
        context_info = references.get_one_optional(Descriptor("pip-services", "context-info", "*", "*", "1.0"))
        if context_info != None and self._source == None:
            self._source = context_info.get_name()