Remove main method from NmsServer (also rename it NmsServer.)