@Override
    protected void setReaction(Message message) {
        try {
            String result;
            String messageText = message.text.trim();
            switch(reactionId) {
                case 1: {
                    String movieSearch = messageText.substring(messageText.indexOf(" ") +1);
                    result = SearchMovieData(movieSearch);
                    break;
                }
                case 2: {
                    String csfdLink = GenerateCsfdMovieLink(messageText);
                    result = GetMovieData(csfdLink);
                    break;
                }
                default:
                    return;
            }

            reaction.add( result );
        } catch (Exception e) {
            if (e instanceof MovieException) {
                reaction.add( e.getMessage() );
            }
            else {
                System.out.println(e);
                if (message.text.startsWith(REACT_MESSAGE))
                    setError("Cannot load given URL.", e);
            }
        }
    }