Also acting as mediator , the King of Spain met Thursday with the foreign ministers of Spain , Argentina and Uruguay to discuss a way out of a festering dispute over a Finnish pulp factory being built in Uruguay on a river that separates it from Argentina .