cleanup the code of the phpcr loader