Updated code to reflect fcrepo4 commit 781d3a495dfaeb19733e98f1cd982ea6fbd6af91