see https://github.com/sonata-project/SonataDoctrinePhpcrAdminBundle/pull/197/files