public static void serialize(final Serializable object, final OutputStream outputStream) {
        FunctionUtils.doUnchecked(__ -> {
            try (val out = new ObjectOutputStream(outputStream)) {
                out.writeObject(object);
            }
        });
    }
Serialize an object.

@param object       The object to be serialized
@param outputStream The stream to receive the object
@since 5.0.0
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/serialization/SerializationUtils.java