Source:
public void handleGetPQValuesResponse(final GetPQValuesResponseDto getPQValuesResponseDto, final String deviceIdentification, final String organisationIdentification, final String correlationUid, final String messageType, final ResponseMessageResultType responseMessageResultType, final OsgpException osgpException) { LOGGER.info("handleResponse for MessageType: {}", messageType); ResponseMessageResultType result = ResponseMessageResultType.OK; GetPQValuesResponse getPQValuesResponse = null; OsgpException exception = null; try { if (responseMessageResultType == ResponseMessageResultType.NOT_OK || osgpException != null) { LOGGER.error("Device Response not ok.", osgpException); throw osgpException; } this.handleResponseMessageReceived(LOGGER, deviceIdentification); getPQValuesResponse = this.mapper.map(getPQValuesResponseDto, GetPQValuesResponse.class); } catch (final Exception e) { LOGGER.error("Unexpected Exception", e); result = ResponseMessageResultType.NOT_OK; exception = this.ensureOsgpException(e, "Exception occurred while getting PQ Values Response Data"); } String actualCorrelationUid = correlationUid; if ("no-correlationUid".equals(actualCorrelationUid)) { actualCorrelationUid = getCorrelationId("DeviceGenerated", deviceIdentification); } this.webServiceResponseMessageSender.send(ResponseMessage.newResponseMessageBuilder() .withCorrelationUid(correlationUid).withOrganisationIdentification(organisationIdentification) .withDeviceIdentification(deviceIdentification).withResult(result).withOsgpException(osgpException) .withDataObject(getPQValuesResponse).build(), messageType); }

Target:
public void handleGetPQValuesResponse(final GetPQValuesResponseDto getPQValuesResponseDto, final String deviceIdentification, final String organisationIdentification, final String correlationUid, final String messageType, final ResponseMessageResultType responseMessageResultType, final OsgpException osgpException) { LOGGER.info("handleResponse for MessageType: {}", messageType); ResponseMessageResultType result = ResponseMessageResultType.OK; GetPQValuesResponse getPQValuesResponse = null; OsgpException exception = null; try { if (responseMessageResultType == ResponseMessageResultType.NOT_OK || osgpException != null) { LOGGER.error("Device Response not ok.", osgpException); throw osgpException; } this.handleResponseMessageReceived(LOGGER, deviceIdentification); getPQValuesResponse = this.mapper.map(getPQValuesResponseDto, GetPQValuesResponse.class); } catch (final Exception e) { LOGGER.error("Unexpected Exception", e); result = ResponseMessageResultType.NOT_OK; exception = this.ensureOsgpException(e, "Exception occurred while getting PQ Values Response Data"); } String actualCorrelationUid = correlationUid; if ("no-correlationUid".equals(actualCorrelationUid)) { actualCorrelationUid = getCorrelationId("DeviceGenerated", deviceIdentification); } ResponseMessage responseMessage = ResponseMessage.newResponseMessageBuilder() .withCorrelationUid(correlationUid).withOrganisationIdentification(organisationIdentification) .withDeviceIdentification(deviceIdentification).withResult(result).withOsgpException(osgpException) .withDataObject(getPQValuesResponse).build(); this.webServiceResponseMessageSender.send(responseMessage, messageType); }