def _add_parameters(self, parameter_map, parameter_list):
        """ Populates the given parameter map with the list of parameters provided, resolving any reference objects encountered.
            References are only resolved within the given spec, and not from other files or urls. Resolve external references before parsing.
        Args:
            parameter_map: mapping from parameter names to parameter objects