Say there are two class foo and bar
bar extends foo but foo is a dependency that was added through maven. So I don't have access to foo's code but I want to serialize it for caching reasons. I want to know is there a way to serialize the foo class without changing the code inside foo it self ?
Thank you