Maybe this should be done by creating CommandStatusFactory, SerializedCommandStatus extends CommandStatus, and don't change this class at all ...  we should avoid deserialization and I wonder whether there is some nice and easy way to do this ..