protected boolean getShowLinearCurve() throws IOException { boolean res = false; { ConfigFactory f = DefaultConfigFactory.getInstance(); Config c = f.getConfig(); String configNameLinearCurve = getConfigNameLinearCurve(); boolean configValueDefault = false; // Set 'configValueDefault': { String mode = c.getProperty("mode"); if (mode != null) { if ("Test".equals(mode)) { configValueDefault = true; } } } res = c.getPropertyAsBoolean(configNameLinearCurve, configValueDefault); } return res; }