Add a deserialization base method that mimics the default JMS behavior, to be extended by child classes.