code: private void createRelationshipType(CmsRelationType relType) {
  
          // relationship types
          RelationshipTypeDefinitionImpl relationshipType = new RelationshipTypeDefinitionImpl();
          relationshipType.setBaseTypeId(BaseTypeId.CMIS_RELATIONSHIP);
          relationshipType.setParentTypeId(RELATIONSHIP_TYPE_ID);
          relationshipType.setIsControllableAcl(Boolean.FALSE);
          relationshipType.setIsControllablePolicy(Boolean.FALSE);
          relationshipType.setIsCreatable(Boolean.valueOf(!relType.isDefinedInContent()));
          relationshipType.setDescription(relType.getName());
          relationshipType.setDisplayName(relType.getName());
          relationshipType.setIsFileable(Boolean.FALSE);
          relationshipType.setIsIncludedInSupertypeQuery(Boolean.TRUE);
          relationshipType.setLocalName(relType.getName());
          relationshipType.setLocalNamespace(NAMESPACE);
          relationshipType.setIsQueryable(Boolean.FALSE);
          String id = "opencms:" + relType.getName().toUpperCase();
          relationshipType.setQueryName(id);
          relationshipType.setId(id);
          List<String> typeList = new ArrayList<String>();
          typeList.add("cmis:document");
          typeList.add("cmis:folder");
          relationshipType.setAllowedSourceTypes(typeList);
          relationshipType.setAllowedTargetTypes(typeList);
          addType(relationshipType);
      }
docs: Creates a CMIS relationship subtype for a given OpenCms relation type.<p>
  
  @param relType the OpenCms relation type