@Override
        public void onNetworkLoadedFromDb(final MeshNetwork meshNetwork) {
            final MeshNetwork network;
            //If there is no network we generate a new one
            if (meshNetwork == null) {
                network = generateMeshNetwork();
                insertNetwork(network);
            } else {
                network = meshNetwork;
                network.loadSequenceNumbers();
            }
            network.setCallbacks(callbacks);
            mMeshNetwork = network;
            mMeshManagerCallbacks.onNetworkLoaded(network);
        }
Callbacks to notify when the database has been loaded
mesh/src/main/java/no/nordicsemi/android/mesh/MeshManagerApi.java