code: public static Constraint required() {
  		return new Constraint("required", simplePayload("required")) {
  			public boolean isValid(Object actualValue) {
  				return !(actualValue == null || StringUtils.isBlank(actualValue.toString()));
  			}
  		};
  	}
docs: The 'required' constraint - marks a field as required.
  @return constraint