public static CySBMLValidator getValidator(SBMLDocument document){
CySBMLValidatorTask vTask = new CySBMLValidatorTask(document);
JTaskConfig jTaskConfig = new JTaskConfig();
jTaskConfig.setOwner(Cytoscape.getDesktop());
jTaskConfig.displayCloseButton(false);
jTaskConfig.displayCancelButton(false);
jTaskConfig.displayStatus(true);
jTaskConfig.setAutoDispose(true);
TaskManager.executeTask(vTask, jTaskConfig);
return vTask.getValidator();