List<ScriptID> result = null;
while (path != null) {
String fullDataName = DataRepository.createDataName(path, dataName);
ListData l = ListData.asListData(data.getSimpleValue(fullDataName));
if (l != null && l.test()) {
if (result == null)
result = new ArrayList<ScriptID>();
for (int i = 0; i < l.size(); i++)
addScriptItem(result, l.get(i), path);