'Parse an XML tag set to discover all child repository dependency tags and define the path to an env.sh file associated
with the repository (this requires the repository dependency to be in an installed state).  The received action_dict
will be updated with these discovered paths and returned to the caller.  This method handles tool dependency definition
tag sets <setup_r_environment>, <setup_ruby_environment>, <setup_python_environment> and <setup_perl_environment>.'

def get_env_shell_file_paths_from_setup_environment_elem(self, all_env_shell_file_paths, elem, action_dict):

    for action_elem in elem:
        if (action_elem.tag == 'repository'):
            env_shell_file_paths = self.get_env_shell_file_paths(action_elem)
            all_env_shell_file_paths.extend(env_shell_file_paths)
    if all_env_shell_file_paths:
        action_dict['env_shell_file_paths'] = all_env_shell_file_paths
        action_dict['action_shell_file_paths'] = all_env_shell_file_paths
    return action_dict
