return so;
}
private StoredObject getStoredObjectForReadOnlySnapshots(String uri, RulesRepository repository, String[] path) {
if ( path.length == 2 ) {
StoredObject so = createStoredObject( uri, loadPackageFromRepository( repository, path[1] ), 0 );
so.setFolder( isFolder( uri ) );
return so;
} else if ( path.length == 3 ) {
return createStoredObject( uri, loadPackageSnapshotFromRepository( repository, path ), 0 );
} else if ( path.length == 4 ) {
PackageItem pkg = loadPackageSnapshotFromRepository( repository, path );