boolean hasManageLayoutsPermission = GroupPermissionUtil.contains(
themeDisplay.getPermissionChecker(), groupId,
ActionKeys.MANAGE_LAYOUTS);
for (LayoutTreeNode layoutTreeNode : layoutTreeNodes) {
JSONObject jsonObject = JSONFactoryUtil.createJSONObject();
<BUG>String childrenJSON = _toJSONObject(

request, groupId,
layoutTreeNode.getChildLayoutTreeNodes()).toString();
jsonObject.put(
"children", JSONFactoryUtil.createJSONObject(childrenJSON));</BUG>
Layout layout = layoutTreeNode.getLayout();

boolean hasManageLayoutsPermission = GroupPermissionUtil.contains(
themeDisplay.getPermissionChecker(), groupId,
ActionKeys.MANAGE_LAYOUTS);
for (LayoutTreeNode layoutTreeNode : layoutTreeNodes) {
JSONObject jsonObject = JSONFactoryUtil.createJSONObject();
JSONObject childrenJSONObject = _toJSONObject(
request, groupId, layoutTreeNode.getChildLayoutTreeNodes());
jsonObject.put("children", childrenJSONObject);
Layout layout = layoutTreeNode.getLayout();
