Source:
public void requestSetConfiguration(final DlmsDeviceMessageMetadata messageMetadata, final SetConfigurationObjectRequest setConfigurationObjectRequest) throws OsgpException, ProtocolAdapterException { LnClientConnection conn = null; try { final ConfigurationObject configurationObject = setConfigurationObjectRequest .getSetConfigurationObjectRequestData().getConfigurationObject(); final GprsOperationModeType gprsOperationModeType = configurationObject.getGprsOperationMode(); final ConfigurationFlags configurationFlags = configurationObject.getConfigurationFlags(); LOGGER.info("******************************************************"); LOGGER.info("******** Configuration Object: 0-0:94.31.3.255 *******"); LOGGER.info("******************************************************"); LOGGER.info("Operation mode:{} ", gprsOperationModeType.value()); LOGGER.info("Flags:"); for (final ConfigurationFlag configurationFlag : configurationFlags.getConfigurationFlag()) { LOGGER.info("Flag : {}, enabled = {}", configurationFlag.getConfigurationFlagType().toString(), configurationFlag.isEnabled()); } LOGGER.info("******************************************************"); final DlmsDevice device = this.domainHelperService.findDlmsDevice(messageMetadata); conn = this.dlmsConnectionFactory.getConnection(device); final AccessResultCode accessResultCode = this.setConfigurationObjectCommandExecutor.execute(conn, device, configurationObject); if (!AccessResultCode.SUCCESS.equals(accessResultCode)) { throw new ProtocolAdapterException("Set configuration object reported result is: " + accessResultCode); } } finally { if (conn != null) { conn.close(); } } }

Target:
public void requestSetConfiguration(final DlmsDeviceMessageMetadata messageMetadata, final SetConfigurationObjectRequest setConfigurationObjectRequest) throws OsgpException, ProtocolAdapterException { LnClientConnection conn = null; try { final ConfigurationObject configurationObject = setConfigurationObjectRequest .getSetConfigurationObjectRequestData().getConfigurationObject(); final GprsOperationModeType gprsOperationModeType = configurationObject.getGprsOperationMode(); final ConfigurationFlags configurationFlags = configurationObject.getConfigurationFlags(); LOGGER.info(VISUAL_SEPARATOR); LOGGER.info("******** Configuration Object: 0-0:94.31.3.255 *******"); LOGGER.info(VISUAL_SEPARATOR); LOGGER.info("Operation mode:{} ", gprsOperationModeType.value()); LOGGER.info("Flags:"); for (final ConfigurationFlag configurationFlag : configurationFlags.getConfigurationFlag()) { LOGGER.info("Flag : {}, enabled = {}", configurationFlag.getConfigurationFlagType().toString(), configurationFlag.isEnabled()); } LOGGER.info(VISUAL_SEPARATOR); final DlmsDevice device = this.domainHelperService.findDlmsDevice(messageMetadata); conn = this.dlmsConnectionFactory.getConnection(device); final AccessResultCode accessResultCode = this.setConfigurationObjectCommandExecutor.execute(conn, device, configurationObject); if (!AccessResultCode.SUCCESS.equals(accessResultCode)) { throw new ProtocolAdapterException("Set configuration object reported result is: " + accessResultCode); } } finally { if (conn != null) { conn.close(); } } }