code: public Locale getDefaultLocale(CmsObject cms, CmsResource resource) {
  
          List<Locale> defaultLocales = getDefaultLocales(cms, resource);
          Locale result;
          if (defaultLocales.size() > 0) {
              result = defaultLocales.get(0);
          } else {
              result = getDefaultLocale();
          }
          return result;
      }
docs: Returns the "the" default locale for the given resource.<p>
  
  It's possible to override the system default (see {@link #getDefaultLocale()}) by setting the property
  <code>{@link CmsPropertyDefinition#PROPERTY_LOCALE}</code> to a comma separated list of locale names.
  This property is inherited from the parent folders.
  This method will return the first locale from that list.<p>
  
  The default locale must be contained in the set of configured available locales,
  see {@link #getAvailableLocales()}.
  In case an invalid locale has been set with the property, this locale is ignored and the
  same result as {@link #getDefaultLocale()} is returned.<p>
  
  In case the property <code>{@link CmsPropertyDefinition#PROPERTY_LOCALE}</code> has not been set
  on the resource or a parent folder,
  this method returns the same result as {@link #getDefaultLocale()}.<p>
  
  @param cms the current cms permission object
  @param resource the resource
  @return an array of default locale names
  
  @see #getDefaultLocales()
  @see #getDefaultLocales(CmsObject, String)