@Nullable
    public AllocatedSceneRange nextAvailableSceneAddressRange(final int rangeSize) {
        final List<AllocatedSceneRange> ranges = new ArrayList<>();
        for (Provisioner provisioner : provisioners) {
            ranges.addAll(provisioner.getAllocatedSceneRanges());
        }
        Collections.sort(ranges, sceneRangeComparator);
        return getNextAvailableSceneRange(rangeSize, new AllocatedSceneRange(0x0001, 0xFFFF), ranges);
    }
Returns the next available scene range for a given size

@param rangeSize Range size
mesh/src/main/java/no/nordicsemi/android/mesh/MeshNetwork.java