Handle IMAP to Java sample code collection.