protected function createObject($path, $format, $throwException = true) { $options = array('throwException' => $throwException); $factory = new WriterFactory(); return $factory->createGenericFileLineWriter($path, $format, $options); }