List projectIDs = collapseLists(arguments, 0);
String listenerName = asStringVal(context
.get(SubscribingExpressionContext.LISTENERVAR_NAME));
try {
ProjectLocator loc = getDbObject(context, ProjectLocator.class);
if (loc == null)
return null;
ListData result = new ListData();
for (Iterator i = projectIDs.iterator(); i.hasNext();) {
Integer key = null;
String oneProjectId = asStringVal(i.next());
if (oneProjectId != null)
key = loc.getKeyForProject(oneProjectId, listenerName);
if (key == null)
key = -999;
result.add(new ImmutableDoubleData(key, false, true));
}