private void showSelectedDirection(SessionRequestContent request) throws ServletLogicException {
        String selectId = request.getParameter(JSP_SELECT_ID);
        if (selectId != null) {
            Integer idDirection = Integer.decode(selectId);
            request.setAttribute(JSP_ID_DIRECTION, idDirection);
            formDirectionList(request);
            List<Direction> list = (List<Direction>) request.getSessionAttribute(JSP_DIRECTION_LIST);
            if (!list.isEmpty()){
                request.setSessionAttribute(JSP_CURRENT_DIRECTION, list.get(0));
            } else {
                Order currOrder = (Order) request.getSessionAttribute(JSP_CURRENT_ORDER);
                if (currOrder != null) {
                    request.setSessionAttribute(JSP_CURRENT_DIRECTION, currOrder.getTour().getDirection());
                }
            }
        } else {
            Direction direction = (Direction) request.getSessionAttribute(JSP_CURRENT_DIRECTION);
            request.setAttribute(JSP_ID_DIRECTION, direction.getIdDirection());
            new TourCommand().formTourList(request);
            List<Tour> list = (List<Tour>) request.getSessionAttribute(JSP_TOUR_LIST);
            direction.setTourCollection(list);
        }
    }