@@ -0,0 +1,1422 @@
+package app_test_files;%0A%0Aimport java.io.File;%0Aimport java.io.FileInputStream;%0Aimport java.io.IOException;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0Aimport java.util.Properties;%0A%0Aimport javax.swing.JOptionPane;%0A%0Apublic class Server %7B%0A%0A%09private List%3CString%3E servers;%0A%09Properties props, settings;%0A%0A%09public Server() %7B%0A%09%09super();%0A%09%09servers = new ArrayList%3C%3E();%0A%09%09props = new Properties();%0A%09%09// Load the servers from the Server config File.%0A%09%09try %7B%0A%09%09%09if (!new File(%22config/app_settings.xml%22).exists()) %7B%0A%09%09%09%09JOptionPane%0A%09%09%09%09%09%09.showMessageDialog(null,%0A%09%09%09%09%09%09%09%09%22The Settings File is missing. please add it to the config folder to proceed.%22);%0A%09%09%09%09System.exit(0);%0A%09%09%09%7D%0A%09%09%09props.loadFromXML(new FileInputStream(%22config/app_settings.xml%22));%0A%09%09%09for (String key : props.stringPropertyNames()) %7B%0A%09%09%09%09if (key.equals(%22BackendUsername%22))%0A%09%09%09%09%09continue;%0A%09%09%09%09else if (key.equals(%22BackendPassword%22))%0A%09%09%09%09%09continue;%0A%09%09%09%09else%0A%09%09%09%09%09servers.add(key + %22;%22 + props.getProperty(key));%0A%09%09%09%7D%0A%09%09%7D catch (IOException e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%7D%0A%0A%09public List%3CString%3E getServers() %7B%0A%09%09return servers;%0A%09%7D%0A%0A%09private final String FILE_NAME = %22app_settings.xml%22;%0A%09private final String APP_DIR = %22config%22;%0A%09File settings_file;%0A%0A%09public void setup_server() %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09if (!new File(APP_DIR).exists()) %7B%0A%09%09%09new File(APP_DIR).mkdir();%0A%09%09%09settings_file = new File(FILE_NAME.concat(%22/%22).concat(FILE_NAME));%0A%09%09%7D%0A%09%7D%0A%7D%0A%0A

Create Server.java