The three Baltic countries, or the Baltic states – Estonia, Latvia, and Lithuania – are held to have continued as legal entities under international law while under the Soviet occupation from 1940 to 1991, as well as during the German occupation in 1941–1944/1945. The prevailing opinion accepts the Baltic thesis of illegal occupation and the actions of the USSR are regarded as contrary to international law in general and to the bilateral treaties between the USSR and the three Baltic countries in particular. This legal continuity has been recognised by most Western powers and is reflected in their state practice. The application of the Stimson Doctrine by the Welles Declaration where a significant segment of the international community refused to grant formal approval for the 1940 Soviet conquest during World War II, the resistance by the Baltic peoples to the Soviet regime, and the uninterrupted functioning of rudimentary state organs in exile support the legal position that sovereign title never passed to the Soviet Union, which implied that occupation sui generis () lasted until the Soviet Union recognized the independence of the three countries in 1991. Thus the Baltic states continued to exist as subjects of international law. The official position of Russia is a continuation of the Soviet position that Estonia, Latvia, and Lithuania were not annexed by the Soviet Union but joined of their own accord in 1940. Russia insists that incorporation of the Baltic states gained international de jure recognition by the agreements made in the Yalta and Potsdam conferences and by the Helsinki accords. They have also argued that in accordance to the internal Soviet laws and constitution, restoration of independence was illegal and the Baltic republics could become newly created sovereign entities only via the secession laws of the USSR. According to this position, all previous treaties, such as the Treaty of Tartu, are invalidated, and all possible claims by Baltic states for monetary compensation have no legal basis. This alternate thesis on continuity of the Baltic states and its related consequences has fueled a fundamental confrontation between Russia and the Baltic states. The legal principle, ex injuria jus non oritur (law cannot arise from unjust acts), differs from the competing principle of ex factis jus oritur (the facts determine the law). On one hand, legal recognition of Baltic incorporation on the part of other sovereign nations outside the Soviet bloc was largely withheld based