useFastInfosetForEncoding = true;
fiCodec.decode(in, contentType, packet);
} else if (isXml(contentType)) {
xmlCodec.decode(in, contentType, packet);
} else {
packet.setMessage(new UnknownContent(contentType, in));
}
if (!useFastInfosetForEncoding) {
useFastInfosetForEncoding = isFastInfosetAcceptable(packet.acceptableMimeTypes);
}