MaximalBodyDescriptor descriptor = (MaximalBodyDescriptor) parser
.getBodyDescriptor();
final MimeDescriptorImpl mimeDescriptorImpl;
if ("message".equalsIgnoreCase(descriptor.getMediaType())
&& "rfc822".equalsIgnoreCase(descriptor.getSubType())) {
final CountingInputStream messageStream = new CountingInputStream(
parser.getDecodedInputStream());
MimeDescriptorImpl embeddedMessageDescriptor = build(messageStream);
final int octetCount = messageStream.getOctetCount();
final int lineCount = messageStream.getLineCount();
mimeDescriptorImpl = createDescriptor(octetCount, lineCount,
descriptor, embeddedMessageDescriptor, headers);
} else {
final InputStream body = parser.getInputStream();