question: protected synchronized void save ( ) { int retVal ; File file ; String text ; FileWriter fwriter ; BufferedWriter bwriter ; retVal = m_FileChooser . showOpenDialog ( this ) ; if ( retVal != MekaFileChooser . APPROVE_OPTION ) return ; file = m_FileChooser . getSelectedFile ( ) ; text = m_TextArea . getText ( ) ; fwriter = null ; bwriter = null ; try { fwriter = new FileWriter ( file ) ; bwriter = new BufferedWriter ( fwriter ) ; bwriter . write ( text ) ; bwriter . newLine ( ) ; bwriter . flush ( ) ; log ( "Log successfully saved to: " + file ) ; } catch ( Exception e ) { handleException ( "Failed to save log output to: " + file , e ) ; } finally { FileUtils . closeQuietly ( bwriter ) ; FileUtils . closeQuietly ( fwriter ) ; } }
target:  Saves the logging content.