Bug fix. Fix the issue that restful template doesn't support generic.