public String doSave() {
    album.setImageFilename(fileUtils.saveImageOnFilesystem(imageFile));
    album.setInterpret(interpret);
    albumService.createOrUpdate(this.album);

    return "detailAlbum.xhtml?faces-redirect=true&album=" + album.getId();
  }
  public String doDelete() {
    FacesContext context = FacesContext.getCurrentInstance();
    FacesMessage message =
        guiUtils.getFacesMessage(
            FacesContext.getCurrentInstance(), FacesMessage.SEVERITY_ERROR, "album.delete.info");
    context.addMessage(null, message);

    albumService.delete(album);

    return "search.xhtml?faces-redirect=true";
  }
  public String init() {
    if (albumId > 0) {
      album = albumService.findById(albumId);

      if (album != null) {
        currentSongNumber = album.getSongs().size() + 1L;
        interpret = album.getInterpret();
        imageName = album.getImageFilename();
      } else {
        FacesContext context = FacesContext.getCurrentInstance();
        FacesMessage message =
            guiUtils.getFacesMessage(
                FacesContext.getCurrentInstance(),
                FacesMessage.SEVERITY_ERROR,
                "album.init.albumNotFoundError");
        context.addMessage(null, message);

        return "error";
      }
    }

    return null;
  }