private static void render(JsonGenerator json, NamedNode node) throws IOException {
        String type = node instanceof FailureNode ? "failure" : node instanceof TestNode ? "test" : "container";
        json.writeStringField("type", type);
        json.writeStringField("name", node.name());
        json.writeStringField("status", node.status().name());
        json.writeNumberField("start", node.start().toEpochMilli());
        json.writeNumberField("duration", node.duration().toMillis());
    }
@author valerijf
@author jonmv
@author mortent
vespa-osgi-testrunner/src/main/java/com/yahoo/vespa/testrunner/TestRunnerHandler.java