"'Prepare chains! For the land is full of bloodshed, and the city is full of violence. I will bring the most wicked of nations to take possession of their houses. I will put an end to the pride of the mighty, and their sanctuaries will be desecrated.'" NIV translation
This passage speaks of the fact that God was going to bring the Babylonians to capture Jerusalem and Judah. We see that the religious leaders and the temple are described as prideful while Babylon is described as the most wicked of nations.
"'When terror comes, they will seek peace in vain. Calamity upon calamity will come, and rumor upon rumor. They will go searching for a vision from the prophet, priestly instruction in the law will cease, the counsel of the elders will come to an end.'" NIV translation
Once they see the approaching army, the leaders would start looking for a message from God. They were hoping to get a message saying that He had changed His mind but there was no message to be heard. The same type of thing will happen in the last days but, then, the antichrist will be there with the message they want to hear.
"'The king will mourn, the prince will be clothed with despair, and the hands of the people of the land will tremble. I will deal with them according to their conduct, and by their own standards I will judge them. Then they will know that I am the Lord.'" NIV translation
The leaders will not have any answers and the people will be filled with fear. God dealt with the idolatry of Judah and its purpose was so that they would know that God is in charge. In the last days, men will make themselves their own god and we can be sure that they will be judged as well. God's pattern of judgment will continue in those days and will be fulfilled in the end.