On gravitational description of Wilson lines