Can one learn about glasses from advances in granular materials