Fixing genericGetCollection APIGenerator