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