work in progress.
refactor code to only use the JCR repository and not the OAK repository