public function collect(Request $request, Response $response, Exception $exception = null)
    {
        $objects = array();
        $objectNames = $this->flexModel->getObjectNames();
        foreach ($objectNames as $objectName) {
            $fieldNames = $this->flexModel->getFieldNames($objectName);

            $objects[] = array(
                'objectName' => $objectName,
                'fieldNames' => $fieldNames,
            );
        }

        $this->data = array(
            'objects' => $objects,
        );
    }