public void load() throws IOException { if (_cfgFile.exists()) { __log.debug("config file exists: " + _cfgFile); FileInputStream fis = null; try { fis = new FileInputStream(_cfgFile); _props.load(fis); } finally { if (fis != null) { try { fis.close(); } catch (Exception ex) { ex.printStackTrace(); } } } } else { __log.debug("config file does not exists: " + _cfgFile); throw new FileNotFoundException("" + _cfgFile); } for (Object key : _props.keySet()) { String value = (String) _props.get(key); value = SystemUtils.replaceSystemProperties(value); _props.put(key, value); } }