TypeValidator.validateAcl(typeDef, addACEs, removeACEs);
// validate the allowed types of the relationship
ObjectStore objStore = fStoreManager.getObjectStore(repositoryId);
TypeDefinition sourceTypeDef = fStoreManager.getTypeById(repositoryId, objStore.getObjectById(sourceId).getTypeId()).getTypeDefinition();
TypeDefinition targetTypeDef = fStoreManager.getTypeById(repositoryId, objStore.getObjectById(targetId).getTypeId()).getTypeDefinition();
TypeValidator.validateAllowedRelationshipTypes(typeDef, sourceTypeDef, targetTypeDef);
StoredObject storedObject = objStore.createRelationship( relationObjects[0], relationObjects[1],
propMap, user, addACEs, removeACEs);
return storedObject;