private void setConnectionType(InetAddress address, GenericRecord properties) { ConnectionTypeResponse connectionType; try { connectionType = connectionTypeLookup.connectionType(address); } catch (AddressNotFoundException e) { return; } catch (Exception e) { LOGGER.error(e, "Error while searching for location information."); return; } ConnectionTypeResponse.ConnectionType connType = connectionType.getConnectionType(); if (connType != null) { put(properties,"_connection_type", connType.name()); } }