private boolean isMatchCondition(final GenreSearchCondition condition, final Genre genre) {

    final GenreName genreName = condition.getName();

    if (genreName != null && !genreName.getValue().isEmpty()) {

      if (!genreName.getValue().equals(genre.getName().getValue())) {

        return false;
      }
    }

    return true;
  }
  @Override
  public GenreId save(Genre genre) {

    final Genre saveGenre;
    if (genre.getId() == null || !genre.isRegistered()) {

      saveGenre = new Genre(new GenreId(sequence), genre.getName());
      sequence++;
    } else {

      saveGenre = genre;
    }
    genreMap.put(saveGenre.getId().getValue(), saveGenre);

    return saveGenre.getId();
  }