code: public List<Locale> getDefaultLocales(CmsObject cms, CmsResource resource) {
  
          String defaultNames = null;
          try {
              defaultNames = cms.readPropertyObject(resource, CmsPropertyDefinition.PROPERTY_LOCALE, true).getValue();
          } catch (CmsException e) {
              LOG.warn(Messages.get().getBundle().key(Messages.ERR_READ_ENCODING_PROP_1, cms.getSitePath(resource)), e);
          }
          return getDefaultLocales(defaultNames);
      }
docs: Returns an array of default locales for the given resource.<p>
  
  Since the default locale is always available, the result list will always contain at least one Locale.<p>
  
  It's possible to override the system default (see {@link #getDefaultLocales()}) 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.<p>
  
  The default locales must be a subset of the configured available locales, see {@link #getAvailableLocales()}.
  In case an invalid locale has been set with the property, this locale is ignored.<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 #getDefaultLocales()}.<p>
  
  Use this method in case you need to get all configured default options for a resource,
  if you just need the "the" default locale for a resource,
  use <code>{@link #getDefaultLocale(CmsObject, String)}</code>.<p>
  
  @param cms the current cms permission object
  @param resource the resource to read the default locale properties for
  @return an array of default locale names
  
  @see #getDefaultLocales()
  @see #getDefaultLocale(CmsObject, String)
  @see #getDefaultLocales(CmsObject, String)
  
  @since 7.0.2