class Invocation extends SwaggerInvocation {

  public void onFinish(Response response) {
    if (finished) {
      // avoid to post repeated event
      return;
    }

    invocationStageTrace.finish();
    EventManager.post(new InvocationFinishEvent(this, response));
    finished = true;
  }

  public  Invocation();
  public  Invocation(ReferenceConfig referenceConfig, OperationMeta operationMeta,
      InvocationRuntimeType invocationRuntimeType,
      Map<String, Object> swaggerArguments);
  public  Invocation(Endpoint endpoint, OperationMeta operationMeta, Map<String, Object> swaggerArguments);

}