code: public static FormValidation validateRequired(String value) {
          if (Util.fixEmptyAndTrim(value) == null)
              return error(Messages.FormValidation_ValidateRequired());
          return ok();
      }
docs: Makes sure that the given string is not null or empty.