public Group createGroup(@NonNull final Provisioner provisioner, @NonNull final String name) {
        if (TextUtils.isEmpty(name)) {
            throw new IllegalArgumentException("Group name cannot be empty");
        }

        final Integer address = nextAvailableGroupAddress(provisioner);
        if (address != null) {
            final Group group = new Group(address, meshUUID);
            group.setName(name);
            return group;
        }
        return null;
    }
Creates a group using the next available group address based on the provisioners allocated group range

@param provisioner provisioner
@return a group or null if creation failed
mesh/src/main/java/no/nordicsemi/android/mesh/MeshNetwork.java