@Override
  public String create() {

    try {
      service.createVisit(entityItem);
      return onCreateComplete();
    } catch (ConstraintViolations e) {
      jsfService.addError(e.getMessage());
    } catch (AuthorizationException e) {
      jsfService.addError(e.getMessage());
    }
    return null;
  }
  @Override
  public String edit() {

    Visit persistedItem =
        (Visit)
            converter.getAsObject(
                FacesContext.getCurrentInstance(), null, jsfService.getReqParam("itemId"));

    try {
      service.checkVisit(persistedItem, entityItem);
      extensionService.evaluateExtensions(entityItem);
      super.edit();

      return "pretty:visitEdit";
    } catch (AuthorizationException e) {
      jsfService.addError(e.getMessage());
    } catch (Exception e) {
      jsfService.addError(e.getMessage());
    }
    return null;
  }