code: String doHandleCommand(final String command) {
          app.handleCommand(command);
          final String output = buffer.toString();
          buffer.setLength(0);
          return output;
      }
docs: Called by handleCommand.