Glueballs as intermediate states in hadronic transitions