/**
* helper method
*
* @param ICommand $command
* @throws Exception
*/
protected function execute(ICommand $command)
{
try {
$command->execute();
} catch (\Exception $e) {
// command failure
$e = new Exception($e->getMessage(), Exception::COMMAND_EXECUTION_FAILURE, $e);
throw $e;
}
}