Determine relation type

Using reflection and parsing the sourcecode.