public synchronized static RepositoryPreferences getInstance() { if (instance == null) { instance = new RepositoryPreferences(); //not very nice but need the repos to be inserted when not present // and to to overwrite potencial edits. // still not clear how to allow people to delete central or netbeans instance.addDefaultRepositoryInfo(LOCAL); instance.addDefaultRepositoryInfo(CENTRAL); instance.addDefaultRepositoryInfo(JAVANET); } return instance; }