If you really want to exclude the repositories, maybe using `Symfony2InterfacesUtil.isInstanceOf` would work