code: @Override
      public void serialize(Message message, OutputStream out) throws IOException {
          String name = names.get(message.getClass());
          if (name == null) {
              throw new Error("BitcoinSerializer doesn't currently know how to serialize " + message.getClass());
          }
          serialize(name, message.bitcoinSerialize(), out);
      }
docs: Writes message to to the output stream.