Half-completed version.
CommandProcessorImpl is completed and covered with tests.