public void setWorkSheetDefinition(WorkSheetDefinition workSheetDefinition) {
JSONObject workSheetDefinitionJSON = null;
try {
workSheetDefinitionJSON = (JSONObject)SerializationManager.serialize(workSheetDefinition, "application/json");
} catch (Throwable e) {
throw new SpagoBIEngineRuntimeException("Impossible to serialize workSheetDefinition definition", e);
}
setProperty( QbeEngineStaticVariables.WORKSHEET_DEFINITION, workSheetDefinitionJSON );
}