By the beginning of 1940 , because of the Nazi occupation of the Netherlands , they were trapped in Amsterdam . By the beginning of 1940 , they were trapped in Amsterdam by the Nazi occupation of the Netherlands .