public static Integer generateGuideNumber(Integer year) {
public static Integer generateGuideNumber() {
    public static Integer generateGuideNumber(Integer year) {        return Collections                .max(RootDomainObject.getInstance().getGuides(), Guide.yearAndNumberComparator)                .getNumber() + 1;    }