private void readObject ( final java . io . ObjectInputStream in ) throws IOException { try { in . defaultReadObject ( ) ; Gson objGson = new GsonBuilder ( ) . setPrettyPrinting ( ) . create ( ) ; Type listType = new TypeToken < Map < String , Object > > ( ) { } . getType ( ) ; this . dataContext = objGson . fromJson ( mapToJson , listType ) ; } catch ( EncryptedDocumentException | ClassNotFoundException e ) { LOG . log ( Level . SEVERE , " error in readObject of serialWorkbook : " + e . getLocalizedMessage ( ) , e ) ; } }
load the workbook from saving .