code: @Override
      public void renameLayout(LayoutIdentifier layout, String newName) {
          String text = getLayoutContent(layout);
          saveLayout(new LayoutIdentifier(newName, layout.shared), text);
          deleteLayout(layout);
      }
docs: Rename a layout.
  
  @param layout The original layout identifier.
  @param newName The new layout name.