if (encodingFormatVersion.equalsIgnoreCase(CURRENT_VERSION)) {
formStateJSON = 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 + "]....");
IFormStateLoader formViewerStateLoader;
formViewerStateLoader = FormStateLoaderFactory.getInstance().getLoader(encodingFormatVersion);
if (formViewerStateLoader == null) {
throw new SpagoBIEngineException("Unable to load data stored in format [" + encodingFormatVersion + "] ");
}
formStateJSON = (JSONObject) formViewerStateLoader.load(str);
logger.debug("Encoding conversion has been executed succesfully");
}
logger.debug("analysis state loaded succsfully from row data");