class DeviceNetworkAddressCleanupService {

    public void clearDuplicateAddresses(final String deviceIdentification, final String host)
            throws UnknownHostException {

        this.clearDuplicateAddresses(deviceIdentification, InetAddress.getByName(host));
    }

    @Autowired public  DeviceNetworkAddressCleanupService(final DeviceRepository deviceRepository,
            @Value("${device.network.address.cleanup.never}") final boolean allowMultipleDevicesPerNetworkAddress,
            @Value("#{'${device.network.address.cleanup.duplicates.allowed}'.split(',')}") final List<String> ipRangesAllowingMultipleDevicesPerAddress);

}