AbstractApplicationContext ctx = new AnnotationConfigApplicationContext(ZombieSpringConfig.class);
// For the destroy method to work.
ctx.registerShutdownHook();
// Start the main game server
ServerManager serverManager = ctx.getBean(ServerManager.class);
//serverManager.startServers(18090,843,8081);
try
{
serverManager.startServers();
}
catch (Exception e)
{
LOG.error("Unable to start servers cleanly: {}",e);
}