Doctrine PHPCR

refactor document class detection