if (authorized) {
return true;
} else {
//Do graph traversal and authorize if there is a match
Traversal traversal = new Traversal();
for (Group group : allowedGroups) {
authorized = group.isAuthorized(user, traversal);
if (authorized) {
return true;
}