void (File baseDir, String relativePath, Map<String, String> result, String valueIfMissing) { File configFile = new File(baseDir, relativePath); if (configFile.exists() && configFile.isFile()) { try { String text = FileUtilRt.loadFile(configFile, "UTF-8"); Matcher matcher = PROPERTY_PATTERN.matcher(text); while (matcher.find()) { if (matcher.group(1) != null) { result.put(matcher.group(1), StringUtilRt.notNullize(matcher.group(2), valueIfMissing)); } else { result.put(matcher.group(3), StringUtilRt.notNullize(matcher.group(4), valueIfMissing)); } } } catch (IOException ignore) { } } }