public static void Main(string[] args) { WebContext ctx = new WebContext("./context.xml"); ((Server)ctx.GetBean(typeof(Server))).Start(/* PORT */ 8080); }