public Scene createScene(@NonNull final Provisioner provisioner,
                             final int number,
                             @NonNull final String name) throws IllegalArgumentException {
        if (provisioner.getAllocatedSceneRanges().isEmpty()) {
            throw new IllegalArgumentException("Unable to create scene," +
                    " there is no scene range allocated to the current provisioner");
        }

        for (AllocatedSceneRange range : provisioner.getAllocatedSceneRanges()) {
            if (range.getLowerBound() > number || range.getUpperBound() < number) {
                throw new IllegalArgumentException("Unable to create a scene, " +
                        "the number is outside the range allocated to the provisioner");
            }
        }

        final Scene scene = new Scene(number, meshUUID);
        if (!TextUtils.isEmpty(name))
            scene.setName(name);
        return scene;
    }
Creates with a given number and name.

@param number Address of the group which must be within the allocated range
@param name   Friendly name of the group
@return true if the group was successfully added and false otherwise since a group may already exist with the same group address
@throws IllegalArgumentException if there is no group range allocated or if the address is out of the range allocated to the provisioner
mesh/src/main/java/no/nordicsemi/android/mesh/MeshNetwork.java