SceneUpdate update = (SceneUpdate)updateClass.newInstance();
update.init(sceneId, sceneVersion);
// decode its contents from the serialized data
ByteArrayInputStream bin = new ByteArrayInputStream(data);
update.unpersistFrom(new ObjectInputStream(bin));
return update;
} catch (IOException ioe) {
error = ioe;
errmsg = "Unable to decode update";