private boolean isGroupAddressInUse(final int address) {
        for (Group group : groups) {
            //if the address is not in use, return it as the next available address to create a group
            if (group.getAddress() == address) {
                return true;
            }
        }
        return false;
    }
Returns the next available group  address for a provisioner based on the allocated group range

@param provisioner {@link Provisioner}
@return Group address
@throws IllegalStateException if there is no allocated group range to this provisioner
mesh/src/main/java/no/nordicsemi/android/mesh/MeshNetwork.java