if (encodingFormatVersion.equalsIgnoreCase(CURRENT_VERSION)) {
worksheetStateJSON = rowDataJSON;
} else {
logger.warn("Row data encoding version [" + encodingFormatVersion + "] does not match with the current version used by the engine [" + CURRENT_VERSION + "] ");
logger.debug("Converting from encoding version [" + encodingFormatVersion + "] to encoding version [" + CURRENT_VERSION + "]....");
IWorksheetStateLoader worksheetViewerStateLoader;
worksheetViewerStateLoader = WorksheetStateLoaderFactory.getInstance().getLoader(encodingFormatVersion);
if (worksheetViewerStateLoader == null) {
throw new SpagoBIEngineException("Unable to load data stored in format [" + encodingFormatVersion + "] ");
}
worksheetStateJSON = (JSONObject) worksheetViewerStateLoader.load(str);
logger.debug("Encoding conversion has been executed succesfully");
}
logger.debug("analysis state loaded succsfully from row data");