class LayerPreviewPanel extends Panel {
public LayerPreviewPanel(String id, IModel<ImportTask> model) {
super(id);
LayerInfo layer = model.getObject().getLayer();
PreviewLayer preview = new PreviewLayer(layer);
List<PreviewLink> links = new ArrayList<PreviewLink>();
links.add(new PreviewLink("layerPreview", preview.getWmsLink()+ "&format=application/openlayers"));
links.add(new PreviewLink("googleearth", "../wms/kml?layers=" + layer.getName()));
add(new DropDownChoice<PreviewLink>("links", new Model(links.get(0)), links,
new ChoiceRenderer<PreviewLink>() {