public function __construct($rootEntity, $rootIdentifier)
{
if (!class_exists($rootEntity)) {
throw new \RuntimeException(sprintf('The class "%s" could not be found', $rootEntity));
}
$this->rootEntity = $rootEntity;
$this->rootIdentifier = $rootIdentifier;
}