protected function makeBuilder(
        $resourceClass,
        $data,
        TransformerAbstract $transformer = null,
        $resourceKey = null
    ) {
        $fractal = $this->makeFractal();
        $builder = new FractalBuilder($fractal, $resourceClass, $data);

        if ($transformer !== null) {
            $builder->setTransformer($transformer);
        }

        if ($resourceKey !== null) {
            $builder->setResourceKey($resourceKey);
        }

        return $builder;
    }