First batch of changes for serialization for entity objects.
Changes were tested for ProfilesService ( XML based service ).
Once this gets merged would checkin changes for other service ,
including JSON based services.
Updating test class
Updating test case
Checking in again serialization changes because of earlier merge
conflicts
Merge pull request #1031 from ManishKataria/master

Serialization changes : Earlier checkin caused merged conflicts