public synchronized void save ( String persistence ) { try { createObjectMapper ( ) . writeValue ( new File ( persistence ) , tableList ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; //To change body of catch statement use File | Settings | File Templates. } }
Maybe save automatically on destroy?