adjusted code for the sandbox, updating to changes in sonata-phpcr-admin bundle