file.getParentFile().mkdirs();
    public static void write( Serializable object, File file ) throws IOException    {        ObjectOutputStream output = null;        FileOutputStream stream = null;        try        {            stream = new FileOutputStream( file );            output = new ObjectOutputStream( stream );            output.writeObject( object );        }        catch( IOException ioe )        {            throw ioe;        }        catch( Throwable e )        {            final String error =               "Unexpected error while attempting to write an object."              + "\ndestination: " + file              + "\nclass: " + object.getClass().getName()              + "\nreason: " + e.toString();            throw new BuilderRuntimeException( error, e );        }        finally        {            closeStream( output );        }    }