Bean that needs to be persisted to the session variable using the SessionVariableAttribute needs to implement this interface.
The bean will be serialized into String before saving to the session variable. Conversely, on retrieval the string be de-serialized back to the bean.