Beans must implement Serializable.