Using CommandFactory to support annotated commands