code: private void parseAttachment(final DirectoryEntry dir, final OutlookMessage msg)
  			throws IOException {
  
  		final OutlookFileAttachment attachment = new OutlookFileAttachment();
  
  		// iterate through all document entries
  		for (final Iterator<?> iter = dir.getEntries(); iter.hasNext(); ) {
  			final Entry entry = (Entry) iter.next();
  			if (entry.isDocumentEntry()) {
  
  				// the document entry may contain information about the attachment
  				final DocumentEntry de = (DocumentEntry) entry;
  				final OutlookMessageProperty msgProp = getMessagePropertyFromDocumentEntry(de);
  				
  				// we provide the class and data of the document entry to the attachment.
  				// The attachment implementation has to know the semantics of the field names
  				attachment.setProperty(msgProp);
  			} else {
  				// a directory within the attachment directory entry  means that a .msg file is attached at this point.
  				// we recursively parse this .msg file and add it as a OutlookMsgAttachment object to the current OutlookMessage object.
  				final OutlookMessage attachmentMsg = new OutlookMessage(rtf2htmlConverter);
  				final OutlookMsgAttachment msgAttachment = new OutlookMsgAttachment(attachmentMsg);
  				msg.addAttachment(msgAttachment);
  				checkDirectoryEntry((DirectoryEntry) entry, attachmentMsg);
  			}
  		}
  
  		// only if there was really an attachment, we add this object to the OutlookMessage object
  		if (attachment.getSize() > -1) {
  			attachment.checkMimeTag();
  			msg.addAttachment(attachment);
  		}
  	}
docs: Creates an {@link OutlookAttachment} object based on
  the given directory entry. The entry may either
  point to an attached file or to an
  attached .msg file, which will be added
  as a {@link OutlookMsgAttachment} object instead.
  
  @param dir The directory entry containing the attachment document entry and some other document entries describing the attachment (name, extension, mime
  type, ...)
  @param msg The {@link OutlookMessage} object that this attachment should be added to.
  @throws IOException Thrown if the attachment could not be parsed/read.