[jforeign] extract type mapping to own function
[jforeign] extract type mapping to own function

This is required because we will use this function recursively with the
container types in order to map the type parameters.

skill-lang/skill,skill-lang/skill