code: @Override
      public Map<String, Document> getFragmentLayoutCopies() {
          // since this is only visible in fragment list in administrative portlet, use default portal
          // locale
          final Locale defaultLocale = localeManagerFactory.getPortalLocales().get(0);
  
          final Map<String, Document> layouts = new HashMap<>();
  
          final List<FragmentDefinition> definitions = this.fragmentUtils.getFragmentDefinitions();
          for (final FragmentDefinition fragmentDefinition : definitions) {
              final Document layout = DocumentFactory.getThreadDocument();
              final UserView userView =
                      this.fragmentUtils.getUserView(fragmentDefinition, defaultLocale);
              if (userView == null) {
                  logger.warn(
                          "No UserView found for FragmentDefinition {}, it will be skipped.",
                          fragmentDefinition.getName());
                  continue;
              }
              final Node copy = layout.importNode(userView.getLayout().getDocumentElement(), true);
              layout.appendChild(copy);
              layouts.put(fragmentDefinition.getOwnerId(), layout);
          }
          return layouts;
      }
docs: Method for acquiring copies of fragment layouts to assist in debugging. No infrastructure
  code calls this but channels designed to expose the structure of the cached fragments use
  this to obtain copies.
  
  @return Map