private static String trimGroup(String apiVersion) {
    if (apiVersion != null && apiVersion.contains("/")) {
      String[] versionParts = apiVersion.split("/");
      return versionParts[0];
    }
    return apiVersion;
  }
private static String trimGroup ( String apiVersion ) { if ( apiVersion != null && apiVersion . contains ( "/" ) ) { String [ ] versionParts = apiVersion . split ( "/" ) ; return versionParts [ 0 ] ; } return apiVersion ; }
Separates apiGroupName for apiGroupName/apiGroupVersion combination.
@param apiVersion  The apiGroupVersion or apiGroupName/apiGroupVersion combo.
@return            Just the apiGroupName part without the apiGroupName, or apiVersion if no separator is found.