} catch (java.lang.NumberFormatException e) {
e.printStackTrace();
usage("Could not interpret port number [" + portStr + "].");
}
basicContext = new BasicContext();
if (configFile.endsWith(".xml")) {
JoranConfigurator configurator = new JoranConfigurator();
configurator.setContext(basicContext);
configurator.doConfigure(configFile);
StatusPrinter.print(basicContext);