public Builder function(Callbacks.SerializableFunction<MenuItem, String> function) {
            menuItem.setFunction(function);
            return this;
        }
Creates a new menu item without value.
primefaces/src/main/java/org/primefaces/model/menu/DefaultMenuItem.java