getCommand to CommandTypes class();