ValueMap map = new ValueMap();
map.put( "type", event.handlingEventType().get().name() );
map.put( "location", event.location().get().getString() );
if( event.voyage().get() != null )
{
map.put( "voyage", event.voyage().get().voyageNumber().get().number().get() );
}
IModel text = new StringResourceModel( "handlingEvent.${type}", this, new Model<ValueMap>( map ) );
item.add( new Label( "event", text )
.add( new ErrorColor( isLast && isMisdirected ) )
.setEscapeModelStrings( false ) );