RasterLayerComponentInfo rasterInfo = new RasterLayerComponentInfo();
rasterInfo.setLayerId(info.getServerLayerId());
rasterInfo.setVisible(true);
rasterInfo.setStyle(((ClientRasterLayerInfo) info).getStyle());
try {
RasterLayerComponentImpl comp = (RasterLayerComponentImpl) printDtoConverterService
.toInternal(rasterInfo);
comp.setLayerId(info.getServerLayerId());
comp.setVisible(true);
layers.add(comp);
} catch (PrintingException e) {
// should never fail
log.error("unexpected exception while adding layers to map" , e);
}