public static void main(String[] args) throws IOException {
        
        System.getProperties().put("proxySet", "true");
        System.getProperties().put("proxyHost", "www-proxy.cs.tcd.ie");
        System.getProperties().put("proxyPort", "8080");

        String repositoryUsername;
        String repositoryPasword;
        int repositoryType;
        String repositoryURL;

        System.out.println("==CMIS client for localisation extensions==");
        repositoryURL = "http://kdeg-vm-13.scss.tcd.ie:8080/alfresco/cmisatom";
        repositoryUsername = "admin";
        repositoryPasword = "admin";
        repositoryType = 1;
        handler = new RepositoryHandler(repositoryURL, repositoryUsername,
                repositoryPasword, repositoryType);
        state = CONTEXT_MAIN;
        System.out.print(MENU_MAIN);
        String userInput = "";
        while ((!(userInput.equalsIgnoreCase("quit")))
                && (state != CONTEXT_EXIT)) {
            userInput = readString();

            if (userInput.equalsIgnoreCase("main")) {
                System.out.print(MENU_MAIN);
                state = CONTEXT_MAIN;
            } else if (state == CONTEXT_MAIN) {
                if (userInput.equalsIgnoreCase("1")) {
                    state = CONTEXT_BROWSE;
                    browserRepository();
                } else if (userInput.equalsIgnoreCase("2")) {
                    //  updateReadinessProperties("","","","","","");
                } else if (userInput.equalsIgnoreCase("3")) {
                    state = CONTEXT_READINESS;
                    listReadiness();
                } else if (userInput.equalsIgnoreCase("4")) {
                    state = CONTEXT_TRANSLATERULES;
                    browseTranslateRules();
                } else if (userInput.equalsIgnoreCase("quit")) {
                } else {
                    System.out.print("Select another option from the main menu (enter 'main' to see the menu): ");
                }
            }
        }

        System.out.println("-- Exiting application");

    }