protected function createXODOutputOptions($options = [])
    {
        $xodOptions = new \XODOutputOptions();
        foreach ($options as $optionKey => $optionValue) {
            // Convert to camel case.
            $converter = new CamelCaseToSnakeCaseNameConverter();
            $camel = $converter->denormalize($optionKey);
            $setter = 'set' . $camel;

            // if setter exists set te value.
            if (method_exists($xodOptions, $setter)) {
                $xodOptions->{$setter}($optionValue);
            }
        }

        return $xodOptions;
    }