what is the use of implementing serializable interface in bean class ?