Detect whether the sentence is a metaphor or not.
He was a rock in a troubled sea.
This sentence includes a metaphor. In the sentence, "he" is metaphorically referred to as a "rock" in the midst of a tumultuous situation or "troubled sea," representing unwavering support, strength and reliability in difficult times.