public void writeSBGN ( Model model , String file ) { // Create the model Sbgn sbgn = createSBGN ( model ) ; // Write in file try { SbgnUtil . writeToFile ( sbgn , new File ( file ) ) ; } catch ( JAXBException e ) { throw new RuntimeException ( "writeSBGN, SbgnUtil.writeToFile failed" , e ) ; } }
Converts the given model to SBGN and writes in the specified file .