Implement mailboxes based on Hibernate.
DDL must be able to be generated/executed (but you should be able to turn that off)
Jboss hibernate deployment+session management should be used.
Mailboxes should be modified to be associated with a string "role".
Access to mailboxes should be checked via UserRepository (http://jira.jboss.com/jira/browse/JBMAIL-7).
option for second-level caching should be obtainable.
Should work with MailStores for body and/or direct storage of the body. (options should be "all messages in mailbox directly", "all messages in mailstore directly", "messages > xKB in mailstore, all others in mailbox")