Use templating for processNestedMembers (not working yet)