Gets one required dependency by its name.
        At least one dependency must present. If the dependency was found it throws a [[ReferenceException]]

        :param name: the dependency name to locate.

        :return: a dependency reference

def get_one_required(self, name):
        """
        Gets one required dependency by its name.
        At least one dependency must present. If the dependency was found it throws a [[ReferenceException]]

        :param name: the dependency name to locate.

        :return: a dependency reference
        """
        locator = self._locate(name)
        if locator == None:
            raise ReferenceException(None, name)
        
        return self._references.get_one_required(locator)