String mode = leg.getMode();
if( mode.equals("transit")) {
TransitLegBean transitLeg = leg.getTransitLeg();
TripBean tripBean = transitLeg.getTrip();
RouteBean routeBean = tripBean.getRoute();
DivPanel panel = new DivPanel();
panel.addStyleName(_css.tripPanelVehiclePanel());
DivPanel row1 = new DivPanel(_css.tripPanelVehiclePanelRow1());
panel.add(row1);
DataResource busIcon = resources.getBusTripTypeIcon();
Image image = new Image(busIcon.getUrl());
image.addStyleName(_css.tripPanelVehiclePanelModeImage());
row1.add(image);
int minutes = Math.round((leg.getEndTime() - leg.getStartTime())
/ (1000 * 60));
String routeShortName = getBestName(transitLeg.getRouteShortName(),tripBean.getRouteShortName(), routeBean.getShortName(),"");
String tripHeadsign = getBestName(transitLeg.getTripHeadsign(),tripBean.getTripHeadsign(),routeBean.getLongName(),"");
row1.add(new DivWidget("Bus - " + routeShortName + " - "
+ tripHeadsign, _css.tripPanelVehiclePanelTitle()));
String departureTime = _timeFormat.format(new Date(leg.getStartTime()));