return new HtmlText(text);
return new HtmlText(text, false);
    protected Layout getLayout(Object object, Class type) {        final List<MetaObject> metaObjects = (List<MetaObject>) getMetaObjects(getPossibleObjects());        final Collection objectsReceived = (Collection) object;        final HtmlMultipleHiddenField hiddenField = new HtmlMultipleHiddenField();        hiddenField.bind((MetaSlot) getContext().getMetaObject());        hiddenField.setConverter(getConverter());        return new TabularLayout() {            private List<HtmlCheckBox> checkboxes = new ArrayList<HtmlCheckBox>();            @Override            public HtmlComponent createLayout(Object object, Class type) {                HtmlContainer container = new HtmlInlineContainer();                HtmlComponent component = super.createLayout(object, type);                container.addChild(hiddenField);                container.addChild(component);                hiddenField.setController(new HtmlController() {                    @Override                    public void execute(IViewState viewState) {                        List<String> values = new ArrayList<String>();                        for (HtmlCheckBox checkBox : checkboxes) {                            if (checkBox.isChecked()) {                                values.add(checkBox.getValue());                            }                        }                        hiddenField.setValues(values.toArray(new String[0]));                    }                });                return container;            }            @Override            protected boolean hasHeader() {                return metaObjects.size() > 0;            }            @Override            protected HtmlComponent getHeaderComponent(int columnIndex) {                String text = "";                if (columnIndex != 0) {                    text = metaObjects.get(0).getSlots().get(columnIndex - 1).getLabel();                }                return new HtmlText(text);            }            @Override            protected int getNumberOfColumns() {                if (metaObjects.size() > 0) {                    MetaObject metaObject = metaObjects.get(0);                    return metaObject.getSlots().size() + 1; // +1 due to the                    // checkbox                } else {                    return 0;                }            }            @Override            protected int getNumberOfRows() {                return metaObjects.size();            }            @Override            protected HtmlComponent getComponent(int rowIndex, int columnIndex) {                if (columnIndex == 0) {                    HtmlCheckBox checkBox = new HtmlCheckBox();                    this.checkboxes.add(checkBox);                    MetaObject metaObject = metaObjects.get(rowIndex);                    checkBox.setUserValue(metaObject.getKey().toString());                    checkBox.setName(hiddenField.getName() + "/" + metaObject.getKey().toString());                    if (objectsReceived != null && objectsReceived.contains(metaObject.getObject())) {                        checkBox.setChecked(true);                    }                    return checkBox;                } else {                    MetaSlot slot = getSlotUsingName(metaObjects.get(rowIndex), columnIndex - 1);                    slot.setReadOnly(true);                    return renderSlot(slot);                }            }            protected MetaSlot getSlotUsingName(MetaObject object, int columnIndex) {                MetaObject referenceObject = metaObjects.get(0);                MetaSlot referenceSlot = referenceObject.getSlots().get(columnIndex);                MetaSlot directSlot = object.getSlots().get(columnIndex); // common                // case                if (directSlot.getName().equals(referenceSlot.getName())) {                    return directSlot;                }                for (MetaSlot slot : object.getSlots()) {                    if (slot.getName().equals(referenceSlot.getName())) {                        return slot;                    }                }                return null;            }        };    }