Fix factory method in command execution state handler
Refactor public interface of CommandExecutionStateHandler
Add editor by document resolving helper