try {
if(outputFormat.equalsIgnoreCase(GeoEngineConstants.PDF)){
maptmpfile = geoInstance.renderMap( GeoEngineConstants.JPEG );
}else{
maptmpfile = geoInstance.renderMap( outputFormat );
}
} catch (Throwable t) {
throw new DrawMapServiceException(getActionName(), "Impossible to render map", t);
}