code: private void createRelation(String resourceName, String targetPath, String relationType, boolean importCase)
      throws CmsException {
  
          CmsResource resource = readResource(resourceName, CmsResourceFilter.IGNORE_EXPIRATION);
          CmsResource target = readResource(targetPath, CmsResourceFilter.IGNORE_EXPIRATION);
          createRelation(resource, target, relationType, importCase);
      }
docs: Adds a new relation to the given resource.<p>
  
  @param resourceName the name of the source resource
  @param targetPath the path of the target resource
  @param relationType the type of the relation
  @param importCase if importing relations
  
  @throws CmsException if something goes wrong