Source:
<code>public ActualMeterReadsResponse convert(final ActualMeterReads source, final Type<? extends ActualMeterReadsResponse> destinationType) { final com.alliander.osgp.adapter.ws.schema.smartmetering.monitoring.ActualMeterReadsResponse destination = new ObjectFactory() .createActualMeterReadsResponse(); final GregorianCalendar c = new GregorianCalendar(); c.setTime(source.getLogTime()); XMLGregorianCalendar convertedDate; try { convertedDate = DatatypeFactory.newInstance().newXMLGregorianCalendar(c); } catch (final DatatypeConfigurationException e) { LOGGER.error("JAXB mapping: An error occured while converting calendar types.", e); convertedDate = null; } destination.setLogTime(convertedDate); destination.setActiveEnergyImport(this.eFromDouble(source.getActiveEnergyImport())); if (!destination.getActiveEnergyImport().getUnit().name().equals(source.getOsgpUnit().name())) { <START> throw new IllegalStateException(String.format("unit %s in destionation differs from unit %s in source", <END> destination.getActiveEnergyImport().getUnit(), source.getOsgpUnit())); } destination.setActiveEnergyExport(this.eFromDouble(source.getActiveEnergyExport())); destination.setActiveEnergyExportTariffOne(this.eFromDouble(source.getActiveEnergyExportTariffOne())); destination.setActiveEnergyExportTariffTwo(this.eFromDouble(source.getActiveEnergyExportTariffTwo())); destination.setActiveEnergyImportTariffOne(this.eFromDouble(source.getActiveEnergyImportTariffOne())); destination.setActiveEnergyImportTariffTwo(this.eFromDouble(source.getActiveEnergyImportTariffTwo())); return destination; }</code><technical_language>Typo in destination</technical_language>

Target:
public ActualMeterReadsResponse convert(final ActualMeterReads source, final Type<? extends ActualMeterReadsResponse> destinationType) { final com.alliander.osgp.adapter.ws.schema.smartmetering.monitoring.ActualMeterReadsResponse destination = new ObjectFactory() .createActualMeterReadsResponse(); final GregorianCalendar c = new GregorianCalendar(); c.setTime(source.getLogTime()); XMLGregorianCalendar convertedDate; try { convertedDate = DatatypeFactory.newInstance().newXMLGregorianCalendar(c); } catch (final DatatypeConfigurationException e) { LOGGER.error("JAXB mapping: An error occured while converting calendar types.", e); convertedDate = null; } destination.setLogTime(convertedDate); destination.setActiveEnergyImport(this.eFromDouble(source.getActiveEnergyImport())); if (!destination.getActiveEnergyImport().getUnit().name().equals(source.getOsgpUnit().name())) { throw new IllegalStateException(String.format("unit %s in destination differs from unit %s in source", destination.getActiveEnergyImport().getUnit(), source.getOsgpUnit())); } destination.setActiveEnergyExport(this.eFromDouble(source.getActiveEnergyExport())); destination.setActiveEnergyExportTariffOne(this.eFromDouble(source.getActiveEnergyExportTariffOne())); destination.setActiveEnergyExportTariffTwo(this.eFromDouble(source.getActiveEnergyExportTariffTwo())); destination.setActiveEnergyImportTariffOne(this.eFromDouble(source.getActiveEnergyImportTariffOne())); destination.setActiveEnergyImportTariffTwo(this.eFromDouble(source.getActiveEnergyImportTariffTwo())); return destination; }