public function getSupplier()
    {
        $values = null;
        $supplier = $this->entity->getSupplier();
        if ($supplier !== null) {
            // Returns no api entity because it will cause a nesting level exception
            $values = [
                'id' => $supplier->getId(),
                'name' => $supplier->getName(),
            ];
        }

        return $values;
    }