There is an important principle in Judaism, a source of hope and also one of the structuring principles of the Torah. It is the principle that God creates the cure before the disease. Bad things may happen but God has already given us the remedy if we know where to look for it.