public function getSchema($class)
    {
        $serializer = $this->get($class);

        if (method_exists($serializer, 'getSchema')) {
            $url = $serializer->getSchema();
            $path = explode('/', $url);
            $absolutePath = $this->rootDir.'/vendor/claroline/distribution/'
            .$path[1].'/'.$path[2].'/Resources/schemas/'.$path[3];

            return $this->loadSchema($absolutePath);
        }
    }