code: protected CmsResource createRelations(CmsObject cms, CmsSecurityManager securityManager, String resourceName)
      throws CmsException {
  
          CmsResource resource = securityManager.readResource(
              cms.getRequestContext(),
              resourceName,
              CmsResourceFilter.ALL);
          I_CmsResourceType resourceType = getResourceType(resource);
          List<CmsLink> links = null;
          if (resourceType instanceof I_CmsLinkParseable) {
              I_CmsLinkParseable linkParseable = (I_CmsLinkParseable)resourceType;
              links = linkParseable.parseLinks(cms, cms.readFile(resource));
          }
          securityManager.updateRelationsForResource(cms.getRequestContext(), resource, links);
          return resource;
      }
docs: Creates the relation information for the resource with the given resource name.<p>
  
  @param cms the cms context
  @param securityManager the security manager
  @param resourceName the resource name of the resource to update the relations for
  
  @return the fresh read resource
  
  @throws CmsException if something goes wrong