* @testedby {@link UtilsTest#testCopy()}
*/
public static <X> X copy(X object) {
FastByteArrayOutputStream out = new FastByteArrayOutputStream();
XStreamUtils.xstream().toXML(object, out);
FastByteArrayInputStream in = new FastByteArrayInputStream(
out.getByteArray(), out.getSize());
Object copy = XStreamUtils.xstream().fromXML(in);
return (X) copy;
}