Wallet wallet = new Wallet(networkParams);
addExtensionsToWallet(wallet);
Protos.Wallet walletData = WalletProtobufSerializer.parseToProto(stream);
new WalletProtobufSerializer().readWallet(walletData, wallet);
if (!wallet.isConsistent()) {
log.error("Loaded an inconsistent wallet");
}