private void refreshList() {
   OWLModel owlModel = ((ImportWizard) getWizard()).getOWLModel();
   Collection availOntologies = new LinkedHashSet();
   for (Iterator it = owlModel.getRepositoryManager().getProjectRepositories().iterator();
       it.hasNext(); ) {
     Repository rep = (Repository) it.next();
     availOntologies.addAll(new TreeSet(rep.getOntologies()));
   }
   for (Iterator it = owlModel.getRepositoryManager().getGlobalRepositories().iterator();
       it.hasNext(); ) {
     Repository rep = (Repository) it.next();
     availOntologies.addAll(new TreeSet(rep.getOntologies()));
   }
   Collection importedOntologies = owlModel.getAllImports();
   for (Iterator it = availOntologies.iterator(); it.hasNext(); ) {
     URI uri = (URI) it.next();
     if (importedOntologies.contains(uri.toString())) {
       it.remove();
     }
   }
   try {
     availOntologies.remove(new URI(owlModel.getDefaultOWLOntology().getURI()));
   } catch (URISyntaxException e) {
     System.err.print(e.getMessage());
   }
   list.setListData(availOntologies.toArray());
 }
 private void addRepository() {
   JComponent c = null;
   if (SwingUtilities.getRoot(this) instanceof JFrame) {
     c = this;
   }
   OWLModel owlModel = ((ImportWizard) getWizard()).getOWLModel();
   RepositoryWizard wizard = new RepositoryWizard(c, owlModel);
   if (wizard.execute() == Wizard.RESULT_FINISH) {
     Repository rep = wizard.getRepository();
     if (rep != null) {
       owlModel.getRepositoryManager().addProjectRepository(0, rep);
       refreshList();
     }
   }
 }