[WIP] poc/apiimport2.0

I mean why don't you move this code in setSerializer method?