* @param associationKey identify the type of the relationship
* @param rowKey identify the relationship
* @return the corresponding relationship
*/
public Relationship findRelationship(AssociationKey associationKey, RowKey rowKey) {
EntityKey entityKey = associationKey.getEntityKey();
Map<String, Object> parameters = new HashMap<String, Object>( entityKey.getColumnNames().length + rowKey.getColumnNames().length );
StringBuilder query = new StringBuilder( "MATCH" );
appendNodePattern( entityKey, parameters, query, ENTITY );
query.append( " - " );
query.append( relationshipCypher( associationKey, rowKey, parameters, entityKey.getColumnNames().length ) );
query.append( " -> () RETURN r" );
ExecutionResult result = engine.execute( query.toString(), parameters );
ResourceIterator<Relationship> column = result.columnAs( "r" );
Relationship relationship = null;
if ( column.hasNext() ) {