changed joinedWithClass and the way to call findGenericPair