boolean newEntryCreated = false;
if (entry == null) {
entry = new IndexRegistryEntry(context, vb);
newEntryCreated = true;
}
Variable v = entry.anyIndex(sessionID, testOnly);
if (v == null) {
return AgentXProtocol.AGENTX_INDEX_NONE_AVAILABLE;
}
else if (!testOnly) {
vb.setVariable(v);