+
+
+ double minValue;
+ double maxValue;
+ if (dsc.isUseDefault()) {
+ DynamicSizingObject dynamicSizingObject = dv.getDefaultSizeContributions().get(mappingName);
+
+ // This is required if ontology module needs to be compiled
+ Object currentGraph = SCLContext.getCurrent().get("graph");
+ try {
+ SCLContext.getCurrent().put("graph", graph);
+
+ DynamicSizeContribution ddcc = dynamicSizingObject.getSizeContributions().get(dsc.getLabel());
+ minValue = ddcc.getDefaultMin();
+ maxValue = ddcc.getDefaultMax();
+ } finally {
+ SCLContext.getCurrent().put("graph", currentGraph);
+ }
+ } else {
+ minValue = dsc.getDefaultMin();
+ maxValue = dsc.getDefaultMax();
+ }