[PDI-10173]: Implemented Serializable on objects to avoid errors in log