code: private void createRelation(CmsResource resource, CmsResource target, String relationType, boolean importCase)
      throws CmsException {
  
          CmsRelationType type = CmsRelationType.valueOf(relationType);
          m_securityManager.addRelationToResource(m_context, resource, target, type, importCase);
      }
docs: Adds a new relation to the given resource.<p>
  
  @param resource the source resource
  @param target the target resource
  @param relationType the type of the relation
  @param importCase if importing relations
  
  @throws CmsException if something goes wrong