Comparisons between dynamics of SBSL and an encapsulated bubble in spherical resonator