Driving water cavitation into a hydrogel cavity