code: public CmsRelationType addRelationType(String name, String type) throws CmsConfigurationException {
  
          // check if new relation types can still be added
          if (m_frozen) {
              throw new CmsConfigurationException(Messages.get().container(Messages.ERR_NO_CONFIG_AFTER_STARTUP_0));
          }
  
          CmsRelationType relationType = new CmsRelationType(m_configuredRelationTypes.size(), name, type);
          m_configuredRelationTypes.add(relationType);
          return relationType;
      }
docs: Adds a new relation type from the XML configuration to the list of user defined relation types.<p>
  
  @param name the name of the relation type
  @param type the type of the relation type, weak or strong
  
  @return the new created relation type instance
  
  @throws CmsConfigurationException in case the resource manager configuration is already initialized