return (value != null) ? value : defaultVal; } private void initialize() { try { bundles = new PropertyResourceBundle(Configuration.class .getResourceAsStream("/" + CONFIG_FILE)); } catch (IOException ioe) { logger.error("Fail to load the configuration file: " + CONFIG_FILE); } } }