this.year = Integer.valueOf(yearHidden.getValue().toString());
final String yearValue = yearHidden.getValue().toString(); if (yearValue.length() > 0) { this.year = Integer.valueOf(yearValue); }
    public void setYearHidden(HtmlInputHidden yearHidden) {        if (yearHidden.getValue() != null) {            this.year = Integer.valueOf(yearHidden.getValue().toString());        }        this.yearHidden = yearHidden;    }