This example shows how to implement a custom component mapper. Read more here.