class MovieServiceImpl implements MovieService {

    public boolean hasLiked(final UUID movieId, final String account) {
        try {
            return movieLikeRepository.findById(movieId + "-" + account).isPresent();
        }
        catch (final Exception ex) {
            final String errorMessage = String.format("An error occured while checking like for movie %s: %s", movieId,
                ex.getMessage());

            log.error(errorMessage, ex);
            throw new MoviePersistenceException(errorMessage, ex);
        }
    }

}