- try {
- state.putAll(((MapState)snapshotState).state);
- } catch (Exception e) {
- LOG.error("Exception in applying snapshot", e);
- }
- if(LOG.isDebugEnabled()) {
- LOG.debug("Snapshot applied to state : {}", ((HashMap<?, ?>) state).size());
+ state.putAll(((MapState)snapshotState).state);
+
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Snapshot applied to state : {}", state.size());