totally externalized the Json serialization into external static methods so that they done get picked up if the XStream jar is not loaded