@Override
 public NetMessage unmarshal(InputStream in) {
   SoapEnvelope msg = SoapSerializer.FromXml(in);
   NetMessage message = Builder.soapToNetMessage(msg);
   EncodingStats.newSoapDecodedMessage();
   return message;
 }
  @Override
  public NetMessage unmarshal(byte[] packet) {
    UnsynchronizedByteArrayInputStream bin = new UnsynchronizedByteArrayInputStream(packet);
    SoapEnvelope msg = SoapSerializer.FromXml(bin);

    NetMessage message = Builder.soapToNetMessage(msg);
    EncodingStats.newSoapDecodedMessage();
    return message;
  }