// Path: src/main/java/com/trezoragent/utils/LocalizedLogger.java
// public class LocalizedLogger {
// 
//     private static ResourceBundle messages;
// 
//     public static void setUpDefault() throws URISyntaxException, IOException {
//         setupLoggerConfig();
//         setLoggerLanguage(AgentConstants.DEFAULT_LOGGER_LANGUAGE, AgentConstants.DEFAULT_LOGGER_COUNTRY);
//     }
// 
//     private static void setupLoggerConfig() throws URISyntaxException, IOException {
//         LogManager.getLogManager().readConfiguration(LocalizedLogger.class.getResourceAsStream("/" + AgentConstants.CONFIG_FILE_NAME));
//     }
// 
//     public static void setLoggerLanguage(String language, String country) {
//         Locale currentLocale = new Locale(language, country);
//         messages = ResourceBundle.getBundle(AgentConstants.LOCALE_BUNDLES_PATH, currentLocale);
//     }
// 
//     public static String getLocalizedMessage(String key) {
//         if (messages == null) {
//             setLoggerLanguage(AgentConstants.DEFAULT_LOGGER_LANGUAGE, AgentConstants.DEFAULT_LOGGER_COUNTRY);
//         }
//         return messages.getString(key);
// 
//     }
// 
//     public static String getLocalizedMessage(String messageKey, Object... args) {
//         if (messages == null) {
//             setLoggerLanguage(AgentConstants.DEFAULT_LOGGER_LANGUAGE, AgentConstants.DEFAULT_LOGGER_COUNTRY);
//         }
//         return String.format(messages.getString(messageKey), args);
//     }
// 
// }


import java.util.logging.Level;
import javax.swing.*;
import com.trezoragent.utils.LocalizedLogger;
import java.io.IOException;
import java.net.URISyntaxException;
import java.util.logging.Logger;
package com.trezoragent.gui;


/**
 * @author Martin Lizner
 *
 */
public class StartAgentGUI {

    private static String startErrors = null;

    private static final String JAVA_VERSION_PROPERTY_KEY = "java.runtime.version";
    private static final String JAVA_PLATFORM_PROPERTY_KEY = "sun.arch.data.model";
    private static final String JAVA_HOME_PROPERTY_KEY = "java.home";

    public static void main(String[] args) throws Exception {

        try {
// Path: src/main/java/com/trezoragent/utils/LocalizedLogger.java
// public class LocalizedLogger {
// 
//     private static ResourceBundle messages;
// 
//     public static void setUpDefault() throws URISyntaxException, IOException {
//         setupLoggerConfig();
//         setLoggerLanguage(AgentConstants.DEFAULT_LOGGER_LANGUAGE, AgentConstants.DEFAULT_LOGGER_COUNTRY);
//     }
// 
//     private static void setupLoggerConfig() throws URISyntaxException, IOException {
//         LogManager.getLogManager().readConfiguration(LocalizedLogger.class.getResourceAsStream("/" + AgentConstants.CONFIG_FILE_NAME));
//     }
// 
//     public static void setLoggerLanguage(String language, String country) {
//         Locale currentLocale = new Locale(language, country);
//         messages = ResourceBundle.getBundle(AgentConstants.LOCALE_BUNDLES_PATH, currentLocale);
//     }
// 
//     public static String getLocalizedMessage(String key) {
//         if (messages == null) {
//             setLoggerLanguage(AgentConstants.DEFAULT_LOGGER_LANGUAGE, AgentConstants.DEFAULT_LOGGER_COUNTRY);
//         }
//         return messages.getString(key);
// 
//     }
// 
//     public static String getLocalizedMessage(String messageKey, Object... args) {
//         if (messages == null) {
//             setLoggerLanguage(AgentConstants.DEFAULT_LOGGER_LANGUAGE, AgentConstants.DEFAULT_LOGGER_COUNTRY);
//         }
//         return String.format(messages.getString(messageKey), args);
//     }
// 
// }


// Path: src/main/java/com/trezoragent/gui/StartAgentGUI.java
import java.util.logging.Level;
import javax.swing.*;
import com.trezoragent.utils.LocalizedLogger;
import java.io.IOException;
import java.net.URISyntaxException;
import java.util.logging.Logger;

package com.trezoragent.gui;


/**
 * @author Martin Lizner
 *
 */
public class StartAgentGUI {

    private static String startErrors = null;

    private static final String JAVA_VERSION_PROPERTY_KEY = "java.runtime.version";
    private static final String JAVA_PLATFORM_PROPERTY_KEY = "sun.arch.data.model";
    private static final String JAVA_HOME_PROPERTY_KEY = "java.home";

    public static void main(String[] args) throws Exception {

        try {
            LocalizedLogger.setUpDefault();