Added Encapsulation method which takes has of keys wich are the encapsulation keys and values to them as arrays of Serialized keys to be encapsulated to the key the value belongs to.