staticFile.setServerPath(WebServerFileExample.class.getResource("/examples/staticFileTest.htm").getPath());
// add the newly created resource to the module
httpFileModule.getResources().addResource(staticFile);
// add the module to the server
webServer.addModule(httpFileModule);
// create an http listener for InetAddress.getLocalhost() on port 11111
IHttpListener httpListener = new HttpListener(11111);
// add the listener to the server