} else {
if (!AuthorizationUtils.authorize(path, ActionConstants.GET)) {
String msg = "User " + CurrentSession.getUser() + " is not authorized to " +
"read the resource " + path + ".";
log.warn(msg);
throw new AuthorizationFailedException(msg);
}
GhostResource<Resource> ghostResource =
(GhostResource<Resource>) cache.get(registryCacheKey);
collection = (Collection) ghostResource.getResource();
if (collection == null) {