Insomnia and its treatment. When are hypnotics justified?

Insomnia and its treatment. When are hypnotics justified?