@Override
 public UserMeal addUserMeal(String meal, int userId, String eatingTime)
     throws UnexpectedErrorException, InvalidMealException, InvalidDateException {
   try {
     Timestamp eatingTimestamp = this.convertToTimestamp(eatingTime);
     int mealId = Integer.parseInt(meal);
     mealService.getMealById(mealId);
     return userMealDao.add(mealId, userId, eatingTimestamp);
   } catch (NumberFormatException e) {
     throw new InvalidMealException();
   } catch (ParseException e) {
     throw new InvalidDateException();
   } catch (DAOException e) {
     throw new UnexpectedErrorException();
   }
 }