EntityToSpiConverter converter = new EntityToSpiConverter();
for (Object result : results)
{
IdentityObjectRelationship relationship = new IdentityObjectRelationshipImpl(
converter.convertToIdentityObject(relationshipFromProp.getValue(result)),
converter.convertToIdentityObject(relationshipToProp.getValue(result)),
(String) relationshipNameProp.getValue(result),
converter.convertToRelationshipType(relationshipTypeProp.getValue(result))
);