* (org.apache.james.imap.api.ImapMessage,
* org.apache.james.imap.encode.ImapResponseComposer,
* org.apache.james.imap.api.process.ImapSession)
*/
protected void doEncode(ImapMessage acceptableMessage, ImapResponseComposer composer, ImapSession session) throws IOException {
final ACLResponse aclResponse = (ACLResponse) acceptableMessage;
final Map<MailboxACLEntryKey, MailboxACLRights> entries = aclResponse.getAcl().getEntries();
composer.untagged();
composer.commandName(ImapConstants.ACL_RESPONSE_NAME);
String mailboxName = aclResponse.getMailboxName();
composer.mailbox(mailboxName == null ? "" : mailboxName);
if (entries != null) {
for (Entry<MailboxACLEntryKey, MailboxACLRights> entry : entries.entrySet()) {
String identifier = entry.getKey().serialize();