docs: public static Locale getLocaleForName(String name) {
  
          String suffix = getLocaleSuffixForName(CmsResource.getName(name));
          if (suffix != null) {
              String laguageString = suffix.substring(0, 2);
              return suffix.length() == 5 ? new Locale(laguageString, suffix.substring(3, 5)) : new Locale(laguageString);
          }
          return null;
      }