code: public Map<String, Locale> getMainLocale() {
  
          return CmsCollectionsGenericWrapper.createLazyMap(new Transformer() {
  
              @SuppressWarnings("synthetic-access")
              public Object transform(Object arg) {
  
                  if (!(arg instanceof String)) {
                      return null;
                  }
                  String path = (String)arg;
                  try {
                      CmsResource res = m_cms.readResource(path);
                      CmsLocaleGroup localeGroup = m_cms.getLocaleGroupService().readLocaleGroup(res);
                      return localeGroup.getMainLocale();
                  } catch (Exception e) {
                      LOG.warn(e.getLocalizedMessage(), e);
                      return null;
                  }
              }
          });
      }
docs: Returns a lazy loading map used to detect the main locale of a resource which is part of a locale group.<p>
  
  Usage in JSPs: ${myvfsaccessbeaninstance.mainLocale['/foo/index.html']}
  
  @return the lazy loading map