Azerbaijan nearly vetoed on Friday a joint declaration adopted at the European Union’s latest summit with six ex-Soviet states because of the wording of its references to the Nagorno-Karabakh conflict.

Azerbaijani Foreign Minister Elmar Mammadyarov, who represented his country at the summit held in Riga, reportedly stormed out of its concluding session that discussed the text drafted by EU officials. News reports from the Latvian capital said Mammadyarov demanded changes relating to the Karabakh dispute.

The 13-page declaration calls for the resolution of ethnic and territorial disputes in the former Soviet Union “on the basis of the principles and norms of international law.” It expresses “full support to the mediation efforts by the co-chairs of the Minsk Group on the Nagorno-Karabakh conflict, including at the level of [U.S., Russian and French] Presidents and their statements since 2009.”

Those statements have said that a Karabakh settlement must be based on the internationally recognized principles of territorial integrity of states, peoples’ self-determination and non-use of force.

“Azerbaijan had some problems with that,” Foreign Minister Edward Nalbandian told RFE/RL’s Armenian service (Azatutyun.am) in Riga. “That is why their foreign minister left the conference room. They tried unsuccessfully to bring him back.”

“But in the end, as a result of appropriate negotiations, it was agreed that the declaration will be adopted [without any amendments] and that Azerbaijan will [separately] present its objections regarding the corresponding provision,” Nalbandian said.

“So what does this mean? It means that Armenia and an important part of the international community … agreed on that matter whereas Azerbaijan was again left isolated,” he claimed.

Mammadyarov did not comment on the controversy immediately after the two-day summit, boycotted by President Ilham Aliyev, drew to a close. The chief Azerbaijani diplomat might have objected to the summit declaration’s failure to explicitly uphold Azerbaijan’s sovereignty over Karabakh.

Aliyev’s chief foreign policy aide, Novruz Mammadov, told the Trend news agency later in the day that by signing up to the Riga declaration Baku made a “concession” to the EU. He did not elaborate.

Addressing the Riga forum on Thursday, President Serzh Sarkisian insisted that Baku cannot evoke the principle of territorial integrity in its efforts to regain control over the disputed territory. “Nagorno-Karabakh has nothing to do with Azerbaijan’s territorial integrity because it has never been part of an independent Azerbaijan,” Sarkisian said.