private void readCommandLine(String inputLine){
        String[] currentLineElements = inputLine.split(" ");
        String cmd = currentLineElements[0];
        if(cmd.toLowerCase().equals("exit")){
            try {
                this.conn.close();
                System.exit(0);
            } catch (SQLException e) {
                e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
            }

        }

        if(commandsMap.containsKey(cmd)){
            try {
                if(cmd.equals("list"))
                    System.out.println(commandsMap.get(cmd).invoke(this).toString());
                else{
                    //repair method to read all words with whitespaces
                    String parametres = currentLineElements[1];
                    commandsMap.get(cmd).invoke(this,parametres);
                }
            } catch (IllegalAccessException e) {
                e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
            } catch (InvocationTargetException e) {
                e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
            }
        }else
            System.out.println("Unknown command");


    }