debug msg could be improved. Like:
log.debug("getResource matched the root resource.");