Source:
<code><START> public void handleGetPQValuesResponse(final GetPQValuesResponseDto getPQValuesResponseDto, <END> 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); }</code><technical_language>![MAJOR](<LINK_0> 'Severity: MAJOR') Method 7 parameters, is greater 6 authorized. [![rule](<LINK_1>](<LINK_2></technical_language>

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); }