super(next);
}
@Override
protected void doEncode(ImapMessage acceptableMessage, ImapResponseComposer composer, ImapSession session) throws IOException {
final NamespaceResponse response = (NamespaceResponse) acceptableMessage;
composer.untagged();
composer.commandName(ImapConstants.NAMESPACE_COMMAND_NAME);
final List<NamespaceResponse.Namespace> personal = response.getPersonal();
encode(personal, composer);
final List<NamespaceResponse.Namespace> users = response.getUsers();
encode(users, composer);
final List<NamespaceResponse.Namespace> shared = response.getShared();
encode(shared, composer);
composer.end();
}