public static void validateDirection(Direction direction) throws TechnicalException {
        if (direction == null) {
            throw new TechnicalException(MSG_ERR_NULL_ENTITY);
        }
        if ( ! isStringValid(direction.getName(), DIRECT_NAME_SIZE)) {
            throw new TechnicalException(NAME_ERROR_MSG);
        }
        if ( ! isStringValid(direction.getPicture(), PICTURE_SIZE)) {
            throw new TechnicalException(PICTURE_ERROR_MSG);
        }
        if ( ! isStringValid(direction.getText(), TEXT_SIZE)) {
            throw new TechnicalException(TEXT_ERROR_MSG);
        }
        if ( ! isSelectedElem(direction.getTourType().getIdTourType())) {
            throw new TechnicalException(SELECT_TOURTYPE_ERROR_MSG);
        }
        if ( ! isSelectedElem(direction.getTransMode().getIdMode())) {
            throw new TechnicalException(SELECT_TRANSMODE_ERROR_MSG);
        }

    }