if (work.getCountry() != null) { if (work.getCountry().getValue() == null) { Map<String, String> params = new HashMap<String, String>(); String values = Arrays.stream(Iso3166Country.values()).map(element -> element.name()).collect(Collectors.joining(", "));
if (work.getCountry() != null && work.getCountry().getValue() != null) { w.setCountryCode(Text.valueOf(work.getCountry().getValue().name()));