while (this.passthroughExceptions.contains(rootThrowable.getClassName())
&& rootThrowable.getCause() != null) {
rootThrowable = rootThrowable.getCause();
}
generator.writeStartObject();
generator.writeStringField("project", this.project);
generator.writeStringField("environment", this.environment);
generator.writeStringField("serverName", this.serverName);
// FIXME this was 'throwable'
generator.writeStringField("backtrace", getStackTrace(rootThrowable));