Hey Sjaak,
Andrea wants to call a method on the generic to get the mapping.
There is one other way that you can do it. You could use the expression attribute of the @Maping. For example
@Mapping(target = "emailaddress", expression = "emails != null && !emails.isEmpty() ? emails.get(0).getEmailAddress() : null"}. You can use emails if they are part of the mapping method, if emails is an attribute of the source parameter then you will have to do source.getEmails()
@Sjaak, do you think that something like the expression is possible with the generic method?