protected void doEncode(ImapMessage acceptableMessage, ImapResponseComposer composer, ImapSession session) throws IOException {
StatusResponse response = (StatusResponse) acceptableMessage;
final Type serverResponseType = response.getServerResponseType();
final String type = asString(serverResponseType);
final ResponseCode responseCode = response.getResponseCode();
final String code = asString(responseCode);
final String tag = response.getTag();
final ImapCommand command = response.getCommand();
final HumanReadableText textKey = response.getTextKey();
final String text = asString(textKey, session);
final Collection<String> parameters;
final long number;
final boolean useParens;
if (responseCode == null) {
parameters = null;
number = -1;
useParens = false;
} else {
parameters = responseCode.getParameters();
number = responseCode.getNumber();
useParens = responseCode.useParens();
}
//composer.statusResponse(tag, command, type, code, parameters, useParens, number, text);
if (tag == null) {
composer.untagged();