make it work for phpcr