samples/boot/findbyusername/src/main/java/sample/session/SessionDetailsFilter.java
String getGeoLocation(String remoteAddr) {
		try {
			CityResponse city = this.reader.city(InetAddress.getByName(remoteAddr));
			String cityName = city.getCity().getName();
			String countryName = city.getCountry().getName();
			if (cityName == null && countryName == null) {
				return null;
			}
			else if (cityName == null) {
				return countryName;
			}
			else if (countryName == null) {
				return cityName;
			}
			return cityName + ", " + countryName;
		}
		catch (Exception ex) {
			return UNKNOWN;

		}
	}
String getGeoLocation(String remoteAddr) {
		try {
			CityResponse city = this.reader.city(InetAddress.getByName(remoteAddr));
			String cityName = city.getCity().getName();
			String countryName = city.getCountry().getName();
			if (cityName == null && countryName == null) {
				return null;
			}
			else if (cityName == null) {
				return countryName;
			}
			else if (countryName == null) {
				return cityName;
			}
			return cityName + ", " + countryName;
		}
		catch (Exception ex) {
			return UNKNOWN;

		}
	}
String getGeoLocation ( String remoteAddr ) { try { CityResponse city = this . reader . city ( InetAddress . getByName ( remoteAddr ) ) ; String cityName = city . getCity ( ) . getName ( ) ; String countryName = city . getCountry ( ) . getName ( ) ; if ( cityName == null && countryName == null ) { return null ; } else if ( cityName == null ) { return countryName ; } else if ( countryName == null ) { return cityName ; } return cityName + ", " + countryName ; } catch ( Exception ex ) { return UNKNOWN ; } }
end::dofilterinternal[]
end :: dofilterinternal []