private void selectClient() {
        List<Client> clients = dc.getAllClients();
        System.out.println("Select client:");
        int index = 0;
        for(Client client : clients) {
            System.out.println(++index + ") " + client.getFirstName());
        }
        System.out.print("> ");
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String cmd;
        try {
            cmd = in.readLine().trim();
            index = Integer.valueOf(cmd);
        }
        catch (NumberFormatException e) {
            System.out.println("Illegal client number!");
            return;
        }
        catch (IOException e) {
            log.error(e);
            return;
        }
        if(index < 1 || index > clients.size()) {
           System.out.println("Illegal client number!");
           return;
        }
        //Test getCLient
        selectedClient = dc.getClient(clients.get(index - 1).getId());
        System.out.println("Selected client: " + selectedClient.getFirstName());
    }