code: public void initialize(CmsObject cms) throws CmsException {
  
          CmsUUID id = m_entry.getId();
          CmsResource resource = cms.readResource(id, CmsResourceFilter.IGNORE_EXPIRATION);
          m_resource = resource;
          CmsResource defaultFile = resource;
          if (resource.isFolder()) {
              defaultFile = cms.readDefaultFile(resource, CmsResourceFilter.IGNORE_EXPIRATION);
          }
          CmsLocaleGroup localeGroup = cms.getLocaleGroupService().readLocaleGroup(defaultFile);
          CmsResource primary = localeGroup.getPrimaryResource();
          CmsProperty noTranslationProp = cms.readPropertyObject(
              primary,
              CmsPropertyDefinition.PROPERTY_LOCALE_NOTRANSLATION,
              false);
          m_noTranslation = noTranslationProp.getValue();
          CmsUUID defaultFileId = (defaultFile != null) ? defaultFile.getStructureId() : null;
          m_isCopyable = (defaultFile != null) && CmsResourceTypeXmlContainerPage.isContainerPage(defaultFile);
          Collection<CmsResource> resourcesForTargetLocale = localeGroup.getResourcesForLocale(m_otherLocale);
          if (!resourcesForTargetLocale.isEmpty()) {
              m_linkedResource = resourcesForTargetLocale.iterator().next();
              if (primary.getStructureId().equals(m_resource.getStructureId())
                  || primary.getStructureId().equals(defaultFileId)
                  || primary.getStructureId().equals(m_linkedResource.getStructureId())) {
                  m_isDirectLink = true;
              }
          }
      }
docs: Initializes the bean.<p>
  
  @param cms the CMS context to use
  
  @throws CmsException if something goes wrong