def METHOD_NAME(self, action, options=None):
    """
    This method executes the defined action in the given event.
    :param action:
    :param options: Contains the flask parameters g, request, response
        and the handler_def configuration
    :type options: dict
    :return:
    """
    ret = True
    #g = options.get("g")
    handler_def = options.get("handler_def")
    handler_options = handler_def.get("options", {})
    counter_name = handler_options.get("counter_name")
    if action == "increase_counter":
        increase(counter_name)
        log.debug("Increased the counter {0!s}.".format(counter_name))
    elif action == "decrease_counter":
        allow_negative = is_true(handler_options.get("allow_negative_values", False))
        decrease(counter_name, allow_negative)
        log.debug("Decreased the counter {0!s}.".format(counter_name))
    elif action == "reset_counter":
        reset(counter_name)
        log.debug("Reset the counter {0!s} to 0.".format(counter_name))
    return ret