refactored PHPCR loader