private void insertNetwork(final MeshNetwork meshNetwork) {
        meshNetwork.setLastSelected(true);
        //If there is only one provisioner we default to the zeroth
        if (meshNetwork.getProvisioners().size() == 1) {
            meshNetwork.getProvisioners().get(0).setLastSelected(true);
        }
        mMeshNetworkDb.insertNetwork(mMeshNetworkDao,
                mNetworkKeysDao,
                mApplicationKeysDao,
                mProvisionersDao,
                mProvisionedNodesDao,
                mGroupsDao, mScenesDao,
                meshNetwork);
    }
The mesh manager api constructor.

@param context context
mesh/src/main/java/no/nordicsemi/android/mesh/MeshManagerApi.java