class Configuration {

    public static void load() {
        try {
            Configuration.loadConfigSwitcher();
        } catch (ConfigurationItemException e) {
            System.out.println("invalid configuration item(s).");
            System.out.println(e.getMessage());
            System.out.println(ExceptionUtils.getFullStackTrace(e));
            System.exit(1);
        } catch (Exception e) {
            System.out.println("Error while parsing " + Constants.CONFIG_SWITCHER_PATH);
            System.out.println(e.getMessage());
            System.out.println(ExceptionUtils.getFullStackTrace(e));
            System.exit(1);
        }

        try {
            Configuration.loadConfig();
        } catch (ConfigurationItemException e) {
            System.out.println("invalid configuration item(s).");
            System.out.println(e.getMessage());
            System.out.println(ExceptionUtils.getFullStackTrace(e));
            System.exit(1);
        } catch (Exception e) {
            System.out.println("Error while parsing " + Configuration.getCurrentConfigPath());
            System.out.println(e.getMessage());
            System.out.println(ExceptionUtils.getFullStackTrace(e));
            System.exit(1);
        }

    }

}