OSCore (Open Symphony Core) is a java library with lot of utilities and reusable components.
This requires the libraries oscore-2.2.6.jar, mail.jar to be in classpath.
The following example shows using TextUtils.encodeObject() API.
It encodes the given Object to String by serializing it to byte array and then encoding using Base64.