A method of delivering a material inside a patient includes: inserting a distal end of an elongated device inside a patient next to a heart deploying a sheath around at least a part of the heart using the elongated device and delivering the material into a space between the heart and the sheath. A method of delivering a material inside a patient includes: inserting the material inside a body of the patient, wherein the material is in solid form, and has a rolled-up configuration un-rolling the material and placing the material around a heart of the patient so that the material wraps at least partially around the heart.