protected void populateItem( ListItem<Leg> item )
{
Leg leg = item.getModelObject();
item.add( new Label( "voyage", leg.voyage().get().toString() ),
new Label( "loadLocation", leg.loadLocation().get().getCode() ),
new Label( "loadTime", new Model<Date>( leg.loadTime().get() ) ),
new Label( "unloadLocation", leg.unloadLocation().get().getCode() ),
new Label( "unloadTime", new Model<Date>( leg.unloadTime().get() ) )
);
}
} );