});
mgr.useAppWith(new AppExecutor() {
public void execute(AppContext context) throws Exception {
// Start the server on the current port number
System.err.println("Creating server on port " + port);
server = new HTTPResourceServer(port);
server.start();
// Ensure that the server has enough time to start up and start
// listening to a port before a tests attempts to connect to the port.
try {