try { return new File(((FileRepository) getRepositories().next()).getName()); } catch (ClassCastException ex) { return null; }
return appDir;
    public File getAppDir() {        try {            return new File(((FileRepository) getRepositories().next()).getName());        } catch (ClassCastException ex) {            return null;        }    }