public static WeatherInformationReturn mapPdf2WeatherOverviewPdf(byte[] pdf) { WeatherInformationReturn weatherInformationReturn = objectFactoryGeneral.createWeatherInformationReturn(); weatherInformationReturn.setSuccess(true); weatherInformationReturn.setResponseText("WeatherInformation successfully generated and converted to Pdf"); weatherInformationReturn.setWeatherOverviewPdf(createWeatherOverviewPdf(pdf)); return weatherInformationReturn; }