Delivery delivery = cargo.delivery().get();
TransportStatus transportStatus = delivery.transportStatus().get();
RouteSpecification routeSpecification = cargo.routeSpecification().get();
final RoutingStatus routingStatus = delivery.routingStatus().get();
boolean isMisrouted = routingStatus == MISROUTED;
boolean isReRouted = !cargo.origin().get().getCode().equals( routeSpecification.origin().get().getCode() );
add( new PrevNext( "prevNext", CargoDetailsPage.class, trackingId ) );
add( new Label( "trackingId", trackingId ) );