public function serializeSingleObject(array $data, $type,  $statusCode = Response::HTTP_OK)
    {
        $model = new ResponseModel($data, $type);

        return new JsonResponse($model->getBody(), $statusCode);
    }