engine: Use specific method to resolve command classes

Change-Id: I2ec45e31f7c72dd5659e1b5fcb81a632cb8b34d4
Signed-off-by: Moti Asayag <masayag@redhat.com>