// synchronize all activities to map.
synchronized (m_relationTypeNameToRelationTypeObject)
{
if ((m_relationTypeNameToRelationTypeObject.get(relationTypeName)) != null)
{
logger.warn("Cannot addRelationType as a relationType of the same name: " + relationTypeName + " already exists in the RelationService");
throw new InvalidRelationTypeException("RelationType with name: " + relationTypeName + " already exists in the RelationService");
}
// set the RelationTypeSupport internal flag to true indicating that the relationType has been declared in the relation service
if (relationType instanceof RelationTypeSupport)
{