.
Made JavaVersion final and implement Serializable.