public void addServerError(XFormsError.ServerError serverError) {
    final int maxErrors = getShowMaxRecoverableErrors();
    if (maxErrors > 0) {
      if (serverErrors == null) serverErrors = new ArrayList<XFormsError.ServerError>();

      if (serverErrors.size() < maxErrors) serverErrors.add(serverError);
    }
  }