code: public String walletToText(Wallet wallet) {
          Protos.Wallet walletProto = walletToProto(wallet);
          return TextFormat.printToString(walletProto);
      }
docs: Returns the given wallet formatted as text. The text format is that used by protocol buffers and although it
  can also be parsed using {@link TextFormat#merge(CharSequence, Message.Builder)},
  it is designed more for debugging than storage. It is not well specified and wallets are largely binary data
  structures anyway, consisting as they do of keys (large random numbers) and {@link Transaction}s which also
  mostly contain keys and hashes.