@Override
    public Study getDefaultStudy() {
        // See if file exists
        File storage = new File("./studies/.defaultstudy");
        if(!storage.exists())
            return null; // No .defaultstudy file
        
        String name;
        try {
            // Read name from file
            name = new String(Files.readAllBytes(FileSystems.getDefault().getPath(storage.getPath())));
        } catch (IOException ex) {
            // Can't do anything about this.
            Logger.getLogger(LocalConnection.class.getName()).log(Level.SEVERE, null, ex);
            return null;
        }
        
        // Get study if it exists
        File studyFile = new File("./studies/", name);
        if(studyFile.exists())
            return new LocalStudy(studyFile);
        
        // Doesn't exist
        Logger.getLogger(LocalConnection.class.getName()).log(Level.WARNING,
                ".defaultstudy refers to nonexistant study");
        return null;
    }