question: private static String toString ( Serializable o ) throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ; ObjectOutputStream oos = new ObjectOutputStream ( baos ) ; oos . writeObject ( o ) ; oos . close ( ) ; return Base64 . encodeToString ( baos . toByteArray ( ) , Base64 . DEFAULT ) ; }
target:  Write the object to a Base64 string.