public void initResource() {
        projectFiles = new ArrayList<File>();
        File projectDir = new File(getDataPath());
        if (!projectDir.exists()) {
            projectDir.mkdirs();
        }
        for (File file : projectDir.listFiles(new FileFilter() {
            public boolean accept(File pathname) {
                if (pathname.getName().endsWith(".xml"))
                    return true;
                return false;
            }

        })) {
            projectFiles.add(file);
        }
    }