Properties combined = chainProperties(defaults);
String configDirPath = combined.getProperty(CONFIG_DIR_PROP);
if (configDirPath != null && !"NONE".equals(configDirPath)) {
File configDir = new File(configDirPath);
if (!configDir.exists() || !configDir.isDirectory()) {
throw new BadConfigDirectoryException(configDir.getAbsolutePath());
}
try {
loadFromFile(combined, configDirPath, SERVER_PROPERTIES_FILE_NAME);
} catch(IOException e) {
throw new ConfigurationPropertiesLoadException(SERVER_PROPERTIES_FILE_NAME, e.getMessage());