Add action into the dictionary of actions.

        Args:
            relative_directory:
            action:

def __add_action(self, relative_directory, action):
        """
        Add action into the dictionary of actions.

        Args:
            relative_directory:
            action:

        """
        generator_action_container = self.__actions.retrieve_element_or_default(relative_directory, None)

        if generator_action_container is None:
            generator_action_container = GeneratorActionContainer()
            generator_action_container.add_generator_action(action)
            self.__actions.add_element(location=relative_directory, element=generator_action_container)
        else:
            generator_action_container.add_generator_action(action)