protected function doLoadClassMetadata($type)
    {
        if (false === $this->classMetadataExists($type)) {
            return null;
        }

        $className = $this->getClassNameForType($type);
        return $this->mf->getMetadataFor($className);
    }