Errors errors = CoreObjectFactory.getErrors();
if (address.getCountry() == null || address.getCountry().trim() == "") {
errors.rejectValue("country", "address.countryMandatory");
}
if (address.getCity() == null || address.getCity().trim() == "") {
errors.rejectValue("city", "address.cityMandatory");