public List<ScriptID> getScripts(String path) {
List<ScriptID> result = new ArrayList<ScriptID>();
while (path != null) {
DataContext ctx = data.getSubcontext(path);
for (ItemDefinition item : SCRIPT_ITEMS)
if (item.test(ctx))
result.add(item.getScriptID(path));
path = DataRepository.chopPath(path);