def __add_action(self, relative_directory, action):
generator_action_container = self.__actions.retrieve_element_or_default(relative_directory, None)<EOL>if generator_action_container is None:<EOL><INDENT>generator_action_container = GeneratorActionContainer()<EOL>generator_action_container.add_generator_action(action)<EOL>self.__actions.add_element(location=relative_directory, element=generator_action_container)<EOL><DEDENT>else:<EOL><INDENT>generator_action_container.add_generator_action(action)<EOL><DEDENT>
Add action into the dictionary of actions.

Args:
    relative_directory:
    action: