public static void main(String[] args) {
YAGW2APIArenanet.INSTANCE.setCurrentLocale(Locale.getDefault());
final IWVWWrapper apiWrapper = YAGW2APIWrapper.INSTANCE.getWVWWrapper();
final IWVWAnalyzer analyzer = YAGW2APIAnalyzer.getAnalyzer();
YAGW2APIAnalyzerPersistence.getDefaultEM(); // startup db connection
final MainWindow mainWindow = new MainWindow();
try {
mainWindow.setVisible(true);
// start the api wrapper
apiWrapper.start();
mainWindow.wireUp(apiWrapper);
// wire everything up
apiWrapper.registerWVWMapListener(analyzer);
apiWrapper.registerWVWMatchListener(analyzer);
} catch (Exception e) {