public void setApiEnd(Date apiEnd) {
        this.apiEnd = apiEnd;
        this.apiDuration = apiEnd.getTime() - apiStart.getTime();
    }
@param apiEnd the apiEnd to set
gateway/engine/core/src/main/java/io/apiman/gateway/engine/metrics/RequestMetric.java