docs: protected Locale getLocaleForNewContent(
          CmsObject cms,
          CmsSecurityManager securityManager,
          String resourcename,
          List<CmsProperty> properties) {
  
          Locale locale = (Locale)(cms.getRequestContext().getAttribute(CmsRequestContext.ATTRIBUTE_NEW_RESOURCE_LOCALE));
          if (locale != null) {
              return locale;
          }
          List<Locale> locales = OpenCms.getLocaleManager().getDefaultLocales(
              cms,
              CmsResource.getParentFolder(resourcename));
          return locales.get(0);
      }