+
+ double minValue;
+ double maxValue;
+ if (dcc.isUseDefault()) {
+ DynamicColoringObject dynamicColoringObject = dv.getDefaultColorContributions().get(mappingName);
+
+ // This is required if ontology module needs to be compiled
+ Object currentGraph = SCLContext.getCurrent().get("graph");
+ try {
+ SCLContext.getCurrent().put("graph", graph);
+
+ DynamicColorContribution ddcc = dynamicColoringObject.getColorContributions().get(dcc.getLabel());
+ minValue = ddcc.getDefaultMin();
+ maxValue = ddcc.getDefaultMax();
+ } finally {
+ SCLContext.getCurrent().put("graph", currentGraph);
+ }
+ } else {
+ minValue = dcc.getDefaultMin();
+ maxValue = dcc.getDefaultMax();
+ }