if (null == country) {
// Throw NPE
throw new NullPointerException("country is null"); //NOI18N
+ } else if (country.getCountryCode() == null) {
+ // Required field not set
+ throw new NullPointerException("country.countryCode is null"); //NOI18N
} else if (country.getCountryCode().isEmpty()) {
// Code is not set
throw new IllegalArgumentException("country.countryCode is empty"); //NOI18N
+ } else if (country.getCountryI18nKey() == null) {
+ // Required field not set
+ throw new NullPointerException("country.countryI18nKey is null"); //NOI18N
} else if (country.getCountryI18nKey().isEmpty()) {
// I18n key is not set
throw new IllegalArgumentException("country.countryI18nKey is empty"); //NOI18N