Bike bike = (Bike)o;
if(bike == null) {
errors.rejectValue("manufacturer", "error.not-specified", null, "Value required.");
} else {
System.out.println("VALIDATOR: bike.manufacturer=" + bike.getManufacturer());
if(bike.getManufacturer() == null || "".equals(bike.getManufacturer()))
errors.rejectValue("manufacturer", "Value not present.", null, "Manufacturer required.");
if(bike.getModel() == null || "".equals(bike.getModel()))
errors.rejectValue("model", "Value not present.", null, "Model is required.");
}