public static void runUserInterface(Parameters parameters) {
        log.debug("Initializing buffered reader");
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int usersChoice;      // Contains the choice, that makes a user in the menu.
        log.info("Starting user's interface");
        for (; ; ) {
            System.out.println(InterfaceMessages.CLIENTS_MAIN_MENU.toString());
            try {
                log.debug("Reading user's choice");
                usersChoice = Integer.parseInt(br.readLine());
            } catch (Exception e) {
                System.out.println(InterfaceMessages.CLIENTS_MAIN_MENU_ERROR_VALUE.toString());
                log.info("User's choice reading error.");
                continue;
            }
            if (log.isInfoEnabled()) {
                log.info("User's choice: " + usersChoice);
            }
            if (usersChoice == 1) { //1. Run server
                runServer(parameters);
            } else if (usersChoice == 2) {   //2. Exit
                System.out.println(InterfaceMessages.SERVER_GOODBYE_MESSAGE.toString());
                break;
            } else {     //If user types an incorrect choice
                log.info("User's choice error.");
                System.out.println(InterfaceMessages.SERVER_INCORRECT_MENU_CHOICE.toString());
            }
        }
    }