protected MudObject cloneObject(MudObject o, boolean register) throws MudCloneException {
if (o == null) {
throw new IllegalArgumentException("object cannot be null");
}
Exception anException = null;
MudObject copy = null;
try {
ByteArrayOutputStream out = new ByteArrayOutputStream();
persistence.serialize(o, out);
InputStream in = new ByteArrayInputStream(out.toByteArray());
copy = persistence.deserializeObject(in);