public static void validateHotel(Hotel hotel) throws TechnicalException {
        if (hotel == null) {
            throw new TechnicalException(MSG_ERR_NULL_ENTITY);
        }
        if ( ! isStringValid(hotel.getName(), NAME_SIZE)) {
            throw new TechnicalException(NAME_ERROR_MSG);
        }
        if ( ! isStringValid(hotel.getPicture(), PICTURE_SIZE)) {
            throw new TechnicalException(PICTURE_ERROR_MSG);
        }
        if ( ! isSelectedElem(hotel.getCity().getIdCity())) {
            throw new TechnicalException(SELECT_CITY_ERROR_MSG);
        }
        if ( ! isSelectedElem(hotel.getStars()) || ! isValidStars(hotel.getStars())) {
            throw new TechnicalException(SELECT_STARS_ERROR_MSG);
        }
    }