Making this class serializable

The use case that led me here was to use this from workflow which relies primarily on Java serialization
Adding another cause