refactor a commonly repeated JCR pattern into a static method, begin unit testing for AbstractResource and FedoraResource