From the elasticity theory to cosmologyand vice versa