// show main frame
frame.setVisible(true);
// load project
//get manager
ProjectManager manager = ProjectManager.getProjectManager();
// try to close existing project if it works then continue
if (manager.closeProjectRequest()) {
if(ont != null && ont instanceof POntology){
try{
ont.load();
manager.setCurrentProject(((POntology)ont).getModel().getProject(),false);
}catch(IOntologyException ex){
ex.printStackTrace();
}
}
}