public function validatePlugin($plugin) { try { $this->validate($plugin); } catch (InvalidServiceException $e) { throw new Exception\InvalidPluginException($e->getMessage(), $e->getCode(), $e); } }