oidAdapterMap.remove(previousOid);
// we can't replace the Oid on the looked-up adapter, so instead we
// just make it the same value as the Oid we were originally passed in
final Oid lookedUpAdapterOid = lookedUpAdapter.getOid();
lookedUpAdapterOid.copyFrom(oid);
// finally re-map the adapter
oidAdapterMap.add(lookedUpAdapterOid, lookedUpAdapter);
}