public function processAddAction()
 {
     $quantity = (int) $this->_getParam('quantity');
     if (!$quantity > 0) {
         $quantity = 1;
     }
     $params = $this->_getParam('inventory');
     $data = false;
     if (is_array($params)) {
         for ($i = 0; $i < $quantity; $i++) {
             $inventory = new ImmunizationInventory();
             $inventory->populateWithArray($params);
             $inventory->persist();
         }
         $data = true;
     }
     $json = Zend_Controller_Action_HelperBroker::getStaticHelper('json');
     $json->suppressExit = true;
     $json->direct($data);
 }