Arcana Coelestia #1020
1020. That these things are meant becomes clear from the fact that everything put together as history from Genesis 1 down to Eber in Chapter 11 means something different from what appears in the letter, and from the consideration that the historical narratives there are purely made-up history customary among the most ancient people. When attesting the truth of some matter they would say that 'Jehovah said it'. Here however 'God' is used because the subject is the spiritual Church. And they did the same when anything true was being, or had been, put into effect.
Judgment
'Judgment' refers to times when evil is brought to its height. Judgment' has two sides, a principle of good and a principle of truth. The faithful are judged from a principle of good, but the unfaithful, from a principle of truth. In Revelation 17:1, judgement signifies the state of the church at its end.
(References: Apocalypse Explained 17; Arcana Coelestia 2319)