src/main/java/com/feedzai/fos/impl/weka/utils/Cloner.java
public void write(File file) throws IOException {
        checkNotNull(file, "Output file cannot be null");

        FileUtils.writeByteArrayToFile(file, serializedObject);
    }
public void write(File file) throws IOException {
        checkNotNull(file, "Output file cannot be null");

        FileUtils.writeByteArrayToFile(file, serializedObject);
    }
Writes the serialized object to file.

@param file the file to write to (will be overwritten)
@throws IOException when the file could not be written