function MyPresenceFactory(){}MyPresenceFactory.prototype.serialize=function(prop){return prop.get_content()};MyPresenceFactory.prototype.deserialize=function(name,content){return new MyPresenceExtension(name,content)};function MyPresenceExtension(name,content){this.name=name;this.content=content}MyPresenceExtension.prototype.get_name=function(){return this.name};MyPresenceExtension.prototype.get_content=function(){return this.content}