}
server.getConfig().logInit(logStream);
Resin resin = Resin.createWatchdog();
resin.preConfigureInit();
resin.setConfigFile(_args.getResinConf().getNativePath());
Thread thread = Thread.currentThread();
thread.setContextClassLoader(resin.getClassLoader());
Cluster cluster = resin.createCluster();
ClusterServer clusterServer = cluster.createServer();
// cluster.addServer(clusterServer);
clusterServer.setId("");
clusterServer.setPort(0);
// clusterServer.addHttp(http);
cluster.addServer(clusterServer);
resin.addCluster(cluster);
_server = resin.createServer();
thread.setContextClassLoader(_server.getClassLoader());
_httpPort = _server.createHttp();
if (_watchdogPort > 0)