Creates a new DependencyResolver from a list of key-value pairs called tuples
        where key is dependency name and value the depedency locator (descriptor).

        :param tuples: a list of values where odd elements are dependency name
        and the following even elements are dependency locator (descriptor)

        :return: a newly created DependencyResolver.

def from_tuples(*tuples):
        """
        Creates a new DependencyResolver from a list of key-value pairs called tuples
        where key is dependency name and value the depedency locator (descriptor).

        :param tuples: a list of values where odd elements are dependency name
        and the following even elements are dependency locator (descriptor)

        :return: a newly created DependencyResolver.
        """
        result = DependencyResolver()
        if tuples == None or len(tuples) == 0:
            return result
        
        index = 0
        while index < len(tuples):
            if index + 1 >= len(tuples):
                break

            name = StringConverter.to_string(tuples[index])
            locator = tuples[index + 1]

            result.put(name, locator)
            index = index + 2
        
        return result