Handle a command.
Handle a command. This method can either return a String, which is returned immediately to the user, or call the partWriter function as many times as it wants. The latter mode streams lines to the client. After the first partWriter call, the implementation must throw an exception to finish the command.