public function validateTransactions($object, array $xactions)
 {
     $errors = array();
     if ($this->isEmptyTextTransaction($object->getName(), $xactions)) {
         $errors[] = $this->newRequiredError(pht('Packages must have a name.'));
         return $errors;
     }
     foreach ($xactions as $xaction) {
         $value = $xaction->getNewValue();
         try {
             PhabricatorPackagesPackage::assertValidPackageName($value);
         } catch (Exception $ex) {
             $errors[] = $this->newInvalidError($ex->getMessage(), $xaction);
         }
     }
     return $errors;
 }