@Override
    public Administratie load() throws IOException {
        if (!isCorrectlyConfigured()) {
            throw new RuntimeException("Serialization mediator isn't initialized correctly.");
        }
        
        ObjectInputStream in = null;
        FileInputStream stream = null;
        Administratie adminObject = null;
        // todo opgave 2
        try{
            stream = new FileInputStream("stamboomadministratie.txt");
            in = new ObjectInputStream(stream);
            
            adminObject = (Administratie) in.readObject();

        }
        catch(IOException exc){
            exc.printStackTrace();
        }
        catch(ClassNotFoundException exc)
        {
            exc.printStackTrace();
        }
        finally{
            if(in != null)
                in.close();
            if(stream != null)
                stream.close();
        }
        
        return adminObject;
    }