} catch (ClassCastException e) {
logger.error(e.getMessage(), e);
}
if (visible) {
return layout.createComponent(object, type);
} else {
String text = getText();
return (text != null) ? new HtmlText(text) : renderValue(object,
RenderKit.getInstance().findSchema(getSubSchema()), getSubLayout());
}