Added functionality to map User-object to XML and Json.