private void encodeLabel(Label l, String text) {
private void encodeLabel(Label l, String text) throws Exception {
    private void encodeLabel(Label l, String text) {        if (l != null) {            l.setText(text);        } else {            throw new Exception("Could not encode into label. The label is null.");        }    }