linksContainer.addChild(new HtmlText(RenderUtils.getFormattedProperties(linksForItem, object)));
linksContainer.addChild(new HtmlText(RenderUtils.getFormattedProperties(linksForItem, object), false));
        public HtmlList createList(Collection collection) {            HtmlList list = new HtmlList();                        list.setClasses(getListClass());                        if (collection == null) {                return list;            }            for (Object object : collection) {                HtmlListItem item = list.createItem();                item.setClasses(getClassFor(object));                item.setStyle(getStyleFor(object));                                Schema schema = RenderKit.getInstance().findSchema(getSchemaFor(object));                HtmlComponent component = renderValue(object, object.getClass(), schema, getLayoutFor(object));                                String imageUrl = getImageFor(object);                if (imageUrl != null) {                    HtmlLink imageLink = new HtmlLink();                    imageLink.setModuleRelative(false);                    imageLink.setUrl(imageUrl);                                        HtmlImage image = new HtmlImage();                    image.setSource(imageLink.calculateUrl());                                        item.addChild(image);                }                                item.addChild(component);                                String linksForItem = getLinksFor(object);                String hiddenLinksForItem = getHiddenLinksFor(object);                                if (linksForItem != null || hiddenLinksForItem != null) {                    HtmlContainer linksContainer = new HtmlInlineContainer();                    linksContainer.setClasses(getUsableLinksClasses());                    linksContainer.setStyle(getLinksStyle());                    if (hiddenLinksForItem != null) {                        HtmlContainer hiddenContainer = new HtmlInlineContainer();                        hiddenContainer.addChild(new HtmlText(RenderUtils.getFormattedProperties(hiddenLinksForItem, object)));                        linksContainer.addChild(hiddenContainer);                    }                                        linksContainer.addChild(new HtmlText(RenderUtils.getFormattedProperties(linksForItem, object)));                    item.addChild(linksContainer);                }                                try {                    String children = getChildrenFor(object);                                     if (children != null) {                        Collection subCollection = (Collection) RendererPropertyUtils.getProperty(object, children, false);                        item.addChild(createList(subCollection));                    }                    else {                        item.setAttribute("noChildren", "true");                    }                }                catch (Exception e) {                    e.printStackTrace();                }            }                        return list;        }