private void processResponse()

in chatterbox-twitter/chatterbox-twitter-impl/src/main/java/org/apache/tomee/chatterbox/twitter/adapter/TwitterResourceAdapter.java [317:338]


    private void processResponse(final Status status, final Object result) {
        if (Response.class.isInstance(result)) {
            final Response response = Response.class.cast(result);
            RESPONSE_MAP.put(status.getUser().getScreenName(), response);
            try {
                replyTo(status, response.getMessage());
            } catch (TwitterException e) {
                LOGGER.severe("Unable to send tweet" + e.getMessage());
            }
        } else {
            RESPONSE_MAP.remove(status.getUser().getScreenName());
        }

        if (String.class.isInstance(result)) {
            RESPONSE_MAP.remove(status.getUser().getScreenName());
            try {
                replyTo(status, String.class.cast(result));
            } catch (TwitterException e) {
                LOGGER.severe("Unable to send tweet" + e.getMessage());
            }
        }
    }