private ServerConfig getServerConfig(final String baseConfigPath) { ServerConfigImpl serverConfig; String tempPath = getTempPath(); String basePath = File.separator + "httpd" + File.separator; try { serverConfig = ServerConfigImpl.createFromPath(baseConfigPath, tempPath); } catch (IOException e) { LOGGER.warning("Unable to read server config. Using the default configuration. " + e.getMessage()); serverConfig = new ServerConfigImpl(basePath, tempPath, new Properties()); } serverConfig.setResourceProviders(selectActiveResourceProviders(serverConfig)); return serverConfig; }