Jersey RestAPI: fixes relating to firing commands