private void adjustForNB() {
        File nbDir = new File(System.getProperty("user.home") + File.separatorChar + ".netbeans");
        if (nbDir.exists()) {
            File[] files = nbDir.listFiles();
            if (files != null && files.length > 0) {
                Arrays.sort(files, new Comparator<File>() {

                    @Override
                    public int compare(File o1, File o2) {
                        return o1.getName().compareTo(o2.getName());
                    }
                });
                File lastNB = files[files.length - 1];
                if (lastNB.exists()) {
                    File bp = new File(lastNB, "build.properties");
                    try {
                        Properties p = new Properties();
                        p.load(new FileReader(bp));
                        if (p.getProperty("oms.ignore") == null) {
                            p.setProperty("oms.version", Utils.getOMSAppVersion());
                            FileWriter w = new FileWriter(bp);
                            p.store(w, "");
                            w.close();
                        }
                    } catch (IOException E) {
                        return;
                    }
                }
                //System.out.println("File " + files[files.length - 1].getAbsolutePath());
            }
        }
    }