Use the recently added registerCommand in Canary recode 0.7-SNAPSHOT so reflection is not necessary