protected function checkStorage()
{
$storageEngine = $this->getContainer()->get('ezpublish.api.storage_engine');
if (!$storageEngine instanceof LegacyStorageEngine) {
throw new RuntimeException('Expected to find Legacy Storage Engine but found something else.');
}
}