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