Pair attributes =
new Pair(Symbol.define("name"),
new Pair(Symbol.define("version"),
new Pair(Symbol.define("serializedState"),
new Pair(Symbol.define("serializedVariables")))));
Object where = Pair.attribute("oid").eq(oid.toBinary()).and(
Pair.attribute("class").eq(primary.getMetaclass().getName()));
InstanceList ilist = Query.createRead(metaclass, attributes, where, null, -1, 0,
false, Query.SEC_NONE, m_context).read();