Doctrine PHPCR

separate the logic to determine the document class for a node