LayoutAPI layoutAPI = APILocator.getLayoutAPI();
Layout newLayout = new Layout();
newLayout.setName(layoutName);
newLayout.setDescription(layoutDescription);
newLayout.setTabOrder(order);
layoutAPI.saveLayout(newLayout);
layoutAPI.setPortletIdsToLayout(newLayout, portletIds);
Map<String, Object> layoutMap = newLayout.toMap();
layoutMap.put("portletTitles", getPorletTitlesFromLayout(newLayout));