docs: @SuppressWarnings("deprecation")
      private CmsNewResourceInfo createResourceTypeInfo(I_CmsResourceType resType, CmsResource copyResource) {
  
          String name = resType.getTypeName();
          Locale locale = getWorkplaceLocale();
          String subtitle = CmsWorkplaceMessages.getResourceTypeDescription(locale, name);
          if (CmsStringUtil.isEmptyOrWhitespaceOnly(subtitle)) {
              subtitle = CmsWorkplaceMessages.getResourceTypeName(locale, name);
          }
          if (copyResource != null) {
              CmsNewResourceInfo info = new CmsNewResourceInfo(
                  copyResource.getTypeId(),
                  name,
                  CmsWorkplaceMessages.getResourceTypeName(locale, name),
                  CmsWorkplaceMessages.getResourceTypeDescription(locale, name),
                  copyResource.getStructureId(),
                  false,
                  subtitle);
              info.setBigIconClasses(CmsIconUtil.getIconClasses(name, null, false));
              return info;
          } else {
              CmsNewResourceInfo info = new CmsNewResourceInfo(
                  resType.getTypeId(),
                  name,
                  CmsWorkplaceMessages.getResourceTypeName(locale, name),
                  CmsWorkplaceMessages.getResourceTypeDescription(locale, name),
                  null,
                  false,
                  subtitle);
              info.setBigIconClasses(CmsIconUtil.getIconClasses(name, null, false));
              return info;
          }
      }