return null;
}
if ( path.length == 1 ) {
listPackages( repository, result );
} else if ( isPermission( path, 2 ) ) {
return repository.listPackageSnapshots( path[1] );
} else if ( isPermission( path, 3 ) ) {
handleReadOnlySnapshotPackages( repository, path, result );
} else {
throw new IllegalArgumentException();
}