- allocate and copy the apiGroup only if one is provided - no need for explicit check for null when free is called - free does it
- allocate and copy the apiGroup only if one is provided - no need for explicit check for null when free is called - free does it