} else if ( path[0].equals( "snapshots" ) && checkPackagePermission( path[1],
RoleTypes.PACKAGE_READONLY ) ) {
if ( path.length == 2 ) {
return new Date();
} else if ( path.length == 3 ) {
return repository.loadPackageSnapshot( path[1],
path[2] ).getLastModified().getTime();
} else if ( path.length == 4 ) {
PackageItem pkg = repository.loadPackageSnapshot( path[1],
path[2] );
AssetItem asset = pkg.loadAsset( AssetItem.getAssetNameFromFileName( path[3] )[0] );