try {
int port = Integer.parseInt(properties.getProperty("portNumber"));
int threadCount = Integer.parseInt(properties.getProperty("threadCount"));
int socketTimeoutInMilliseconds = Integer.parseInt(properties.getProperty("timeout"));
webRoot = properties.getProperty("webRoot");
connectionManager = new ConnectionManager(port,socketTimeoutInMilliseconds);
requestScheduler = new ClientRequestScheduler(threadCount);
mainExecutor = Executors.newSingleThreadExecutor();
} catch (IOException e) {
e.printStackTrace();
}