private static <T> T getFromJson(final Map<String, T> map, final String jsonValue, final T defaultValue) {
            if (StringUtils.isBlank(jsonValue)) {
                return defaultValue;
            }
            final T mappedValue = map.get(jsonValue.toLowerCase(Locale.US).trim());
            return mappedValue == null ? defaultValue : mappedValue;
        }
Encapsulates the raw APi calls to bettercacher.org
main/src/main/java/cgeo/geocaching/connector/bettercacher/BetterCacherAPI.java