code: private FailureModel buildModel(FailureMirror f) {
      FailureModel model = new FailureModel();
      model.message = Strings.nullToEmpty(f.getMessage());
      model.text = f.getTrace();
      model.type = f.getThrowableClass();
      return model;
    }
docs: /*