public boolean addScene(@NonNull final Scene scene) throws IllegalArgumentException {

        final Provisioner provisioner = getSelectedProvisioner();
        if (provisioner.getAllocatedSceneRanges().isEmpty()) {
            throw new IllegalArgumentException("Unable to create scene," +
                    " there is no scene range allocated to the current provisioner");
        }
        return insertScene(scene);
    }
Adds a scene to the existing scenes list within the network

@param scene to be added
@return true if the scene was successfully added and false otherwise since a scene 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